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:
Noble Paul 2009-08-19 17:12:05 +00:00
parent 00e1299bd6
commit bc280a3922
1 changed files with 1 additions and 4 deletions

View File

@ -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();
}