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:
Noble Paul 2010-03-31 10:07:18 +00:00
parent 97dfb8c53c
commit 04dc8c10fd
2 changed files with 5 additions and 1 deletions

View File

@ -124,6 +124,8 @@ New Features
* SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage. * SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage.
(Alex Baranov via yonik) (Alex Baranov via yonik)
* SOLR-1769: Solr 1.4 Replication - Repeater throwing NullPointerException (Jörgen Rydenius via noble)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -920,7 +920,9 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
if (getCommit) { if (getCommit) {
IndexCommit oldCommitPoint = indexCommitPoint; IndexCommit oldCommitPoint = indexCommitPoint;
indexCommitPoint = core.getDeletionPolicy().getLatestCommit(); indexCommitPoint = core.getDeletionPolicy().getLatestCommit();
if (indexCommitPoint != null) {
core.getDeletionPolicy().saveCommitPoint(indexCommitPoint.getVersion()); core.getDeletionPolicy().saveCommitPoint(indexCommitPoint.getVersion());
}
if(oldCommitPoint != null){ if(oldCommitPoint != null){
core.getDeletionPolicy().releaseCommitPoint(oldCommitPoint.getVersion()); core.getDeletionPolicy().releaseCommitPoint(oldCommitPoint.getVersion());
} }