LUCENE-3520: fix test failure: call SIS.getVersion directly to avoid possible ACE if we are closed while being reopened

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1184956 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-10-16 23:52:09 +00:00
parent f62e969404
commit 4bfa64bcb9
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ class DirectoryReader extends IndexReader implements Cloneable {
IndexReader reader = writer.getReader(applyAllDeletes);
// If in fact no changes took place, return null:
if (reader.getVersion() == getVersion()) {
if (reader.getVersion() == segmentInfos.getVersion()) {
reader.decRef();
return null;
}