mirror of https://github.com/apache/lucene.git
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:
parent
f62e969404
commit
4bfa64bcb9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue