From 9ad9a5f65a4b6944ca831e32625f665285a45bf4 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 14 Oct 2013 10:13:25 +0000 Subject: [PATCH] LUCENE-5263: fix comment git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1531837 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/java/org/apache/lucene/index/IndexWriter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {