mirror of https://github.com/apache/lucene.git
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:
parent
25828363ec
commit
ceb8db5bb5
|
@ -3662,7 +3662,7 @@ public class IndexWriter implements Closeable {
|
||||||
// This merge (and, generally, any change to the
|
// This merge (and, generally, any change to the
|
||||||
// segments) may now enable new merges, so we call
|
// segments) may now enable new merges, so we call
|
||||||
// merge policy & update pending merges.
|
// merge policy & update pending merges.
|
||||||
if (success && !merge.isAborted() && (merge.optimize || (!closed && !closing))) {
|
if (success && !merge.isAborted() && !closed && !closing) {
|
||||||
updatePendingMerges(merge.maxNumSegmentsOptimize, merge.optimize);
|
updatePendingMerges(merge.maxNumSegmentsOptimize, merge.optimize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue