From 25731ea3f7edff2c8234e7ddd04c5320c4fcd589 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 15 Nov 2011 09:28:46 +0000 Subject: [PATCH] SOLR-2895: call CommitTracker#addedDocument after document is added git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1202107 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/solr/update/DirectUpdateHandler2.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java index 3fa4f4da3fb..382350d4e43 100644 --- a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java +++ b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java @@ -143,7 +143,6 @@ public class DirectUpdateHandler2 extends UpdateHandler { try { - commitTracker.addedDocument( cmd.commitWithin ); softCommitTracker.addedDocument( -1 ); // TODO: support commitWithin with soft update if (cmd.overwrite) { @@ -172,7 +171,7 @@ public class DirectUpdateHandler2 extends UpdateHandler { // allow duplicates writer.addDocument(cmd.getLuceneDocument()); } - + commitTracker.addedDocument( cmd.commitWithin ); // Add to the transaction log *after* successfully adding to the index, if there was no error. // This ordering ensures that if we log it, it's definitely been added to the the index. // This also ensures that if a commit sneaks in-between, that we know everything in a particular