LUCENE-2618: revert

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-10-22 17:57:38 +00:00
parent 25828363ec
commit ceb8db5bb5
1 changed files with 1 additions and 1 deletions

View File

@ -3662,7 +3662,7 @@ public class IndexWriter implements Closeable {
// This merge (and, generally, any change to the
// segments) may now enable new merges, so we call
// merge policy & update pending merges.
if (success && !merge.isAborted() && (merge.optimize || (!closed && !closing))) {
if (success && !merge.isAborted() && !closed && !closing) {
updatePendingMerges(merge.maxNumSegmentsOptimize, merge.optimize);
}
}