mirror of https://github.com/apache/lucene.git
LUCENE-5263: fix comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1531837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4ee6188ef
commit
9ad9a5f65a
|
@ -3357,14 +3357,14 @@ public class IndexWriter implements Closeable, TwoPhaseCommit{
|
||||||
assert merge.info.info.getDocCount() != 0 || keepFullyDeletedSegments || dropSegment;
|
assert merge.info.info.getDocCount() != 0 || keepFullyDeletedSegments || dropSegment;
|
||||||
|
|
||||||
if (mergedDeletes != null) {
|
if (mergedDeletes != null) {
|
||||||
// Pass false for assertInfoLive because the merged
|
|
||||||
// segment is not yet live (only below do we commit it
|
|
||||||
// to the segmentInfos):
|
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
try {
|
try {
|
||||||
if (dropSegment) {
|
if (dropSegment) {
|
||||||
mergedDeletes.dropChanges();
|
mergedDeletes.dropChanges();
|
||||||
}
|
}
|
||||||
|
// Pass false for assertInfoLive because the merged
|
||||||
|
// segment is not yet live (only below do we commit it
|
||||||
|
// to the segmentInfos):
|
||||||
readerPool.release(mergedDeletes, false);
|
readerPool.release(mergedDeletes, false);
|
||||||
success = true;
|
success = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue