mirror of https://github.com/apache/lucene.git
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:
parent
ccabe055c5
commit
2bd83933d7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue