mirror of https://github.com/apache/lucene.git
SOLR-1853 Solr 1.4 Replication - Repeater throwing NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@929454 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
97dfb8c53c
commit
04dc8c10fd
|
@ -124,6 +124,8 @@ New Features
|
|||
* SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage.
|
||||
(Alex Baranov via yonik)
|
||||
|
||||
* SOLR-1769: Solr 1.4 Replication - Repeater throwing NullPointerException (Jörgen Rydenius via noble)
|
||||
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -920,7 +920,9 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
|
|||
if (getCommit) {
|
||||
IndexCommit oldCommitPoint = indexCommitPoint;
|
||||
indexCommitPoint = core.getDeletionPolicy().getLatestCommit();
|
||||
if (indexCommitPoint != null) {
|
||||
core.getDeletionPolicy().saveCommitPoint(indexCommitPoint.getVersion());
|
||||
}
|
||||
if(oldCommitPoint != null){
|
||||
core.getDeletionPolicy().releaseCommitPoint(oldCommitPoint.getVersion());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue