From 38f1194d4724cf6a582d1c40180457fc8ac23131 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Wed, 3 Oct 2012 15:51:56 +0000 Subject: [PATCH] use closeWhileHandlingException when success is false git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/slowclosing@1393566 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/codecs/bloom/BloomFilteringPostingsFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java b/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java index 47802bc7224..ff4472b222e 100644 --- a/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java +++ b/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/BloomFilteringPostingsFormat.java @@ -183,7 +183,7 @@ public final class BloomFilteringPostingsFormat extends PostingsFormat { success = true; } finally { if (!success) { - IOUtils.close(bloomIn, delegateFieldsProducer); + IOUtils.closeWhileHandlingException(bloomIn, delegateFieldsProducer); } } }