add missing success=true

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1423576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-12-18 18:56:54 +00:00
parent ccabe055c5
commit 2bd83933d7
1 changed files with 2 additions and 0 deletions

View File

@ -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);