From 2bd83933d76643a4a70e091a213aa90123373554 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 18 Dec 2012 18:56:54 +0000 Subject: [PATCH] add missing success=true git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1423576 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java b/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java index 5844836338f..c2ac1ce4c93 100644 --- a/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java +++ b/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java @@ -174,6 +174,7 @@ final class SegmentMerger { } } } + success = true; } finally { if (success) { IOUtils.close(consumer); @@ -202,6 +203,7 @@ final class SegmentMerger { consumer.mergeNumericField(field, mergeState, toMerge); } } + success = true; } finally { if (success) { IOUtils.close(consumer);