mirror of https://github.com/apache/lucene.git
make sure to close the IndexInput used to read index version
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7dfe984867
commit
0c6efd3dee
|
@ -90,6 +90,9 @@ public class CheckIndex {
|
||||||
out.println("ERROR: could not read segment file version in directory");
|
out.println("ERROR: could not read segment file version in directory");
|
||||||
t.printStackTrace(out);
|
t.printStackTrace(out);
|
||||||
return false;
|
return false;
|
||||||
|
} finally {
|
||||||
|
if (input != null)
|
||||||
|
input.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
String sFormat = "";
|
String sFormat = "";
|
||||||
|
|
Loading…
Reference in New Issue