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@805888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00e1299bd6
commit
bc280a3922
|
@ -402,10 +402,7 @@ public class DirectUpdateHandler2 extends UpdateHandler {
|
|||
if (cmd.optimize) {
|
||||
openWriter();
|
||||
writer.optimize(cmd.maxOptimizeSegments);
|
||||
}
|
||||
|
||||
closeWriter();
|
||||
if (!cmd.optimize && cmd.expungeDeletes) {
|
||||
} else if (cmd.expungeDeletes) {
|
||||
openWriter();
|
||||
writer.expungeDeletes();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue