mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 21:39:25 +00:00
more close-on-exc bugs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/slowclosing@1393565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4485a42a03
commit
c34e9434c4
@ -179,15 +179,13 @@ public final class BloomFilteringPostingsFormat extends PostingsFormat {
|
||||
FieldInfo fieldInfo = state.fieldInfos.fieldInfo(fieldNum);
|
||||
bloomsByFieldName.put(fieldInfo.name, bloom);
|
||||
}
|
||||
IOUtils.close(bloomIn);
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
IOUtils.close(bloomIn, delegateFieldsProducer);
|
||||
} else {
|
||||
IOUtils.close(bloomIn);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Iterator<String> iterator() {
|
||||
|
@ -179,7 +179,8 @@ public class BlockTreeTermsReader extends FieldsProducer {
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
IOUtils.closeWhileHandlingException(in, indexIn, this);
|
||||
// this.close() will close in:
|
||||
IOUtils.closeWhileHandlingException(indexIn, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user