Skip to content

Apache Lucene open-source search software

LUCENE-5263: fix comment

Michael McCandless9ad9a5f65a4b
diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
index 43395d9b015..fe2c5a52ab3 100644
--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
@@ -3357,14 +3357,14 @@ public class IndexWriter implements Closeable, TwoPhaseCommit{
assert merge.info.info.getDocCount() != 0 || keepFullyDeletedSegments || dropSegment;
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;
try {
if (dropSegment) {
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);
success = true;
} finally {