mirror of https://github.com/apache/lucene.git
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:
parent
bc280a3922
commit
5be6d7bb08
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue