lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r606299 - /lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
Date Fri, 21 Dec 2007 20:31:48 GMT
Author: mikemccand
Date: Fri Dec 21 12:31:48 2007
New Revision: 606299

URL: http://svn.apache.org/viewvc?rev=606299&view=rev
Log:
make sure to close the IndexInput used to read index version

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java?rev=606299&r1=606298&r2=606299&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java Fri Dec 21 12:31:48
2007
@@ -90,6 +90,9 @@
       out.println("ERROR: could not read segment file version in directory");
       t.printStackTrace(out);
       return false;
+    } finally {
+      if (input != null)
+        input.close();
     }
 
     String sFormat = "";



Mime
View raw message