SOLR-1275 the last commit was failing the test.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@805899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-08-19 17:33:52 +00:00
parent bc280a3922
commit 5be6d7bb08
1 changed files with 3 additions and 2 deletions

View File

@ -383,10 +383,9 @@ public class DirectUpdateHandler2 extends UpdateHandler {
if (cmd.optimize) {
optimizeCommands.incrementAndGet();
} else if (cmd.expungeDeletes) {
expungeDeleteCommands.incrementAndGet();
} else {
commitCommands.incrementAndGet();
if (cmd.expungeDeletes) expungeDeleteCommands.incrementAndGet();
}
Future[] waitSearcher = null;
@ -407,6 +406,8 @@ public class DirectUpdateHandler2 extends UpdateHandler {
writer.expungeDeletes();
}
closeWriter();
callPostCommitCallbacks();
if (cmd.optimize) {
callPostOptimizeCallbacks();