mirror of https://github.com/apache/lucene.git
LUCENE-3646: One more try to purge the reader!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1232455 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f0e7add69
commit
59d1b112c0
|
@ -173,6 +173,9 @@ class FieldCacheImpl implements FieldCache {
|
|||
Object key = reader.getCoreCacheKey();
|
||||
if (key instanceof IndexReader) {
|
||||
((IndexReader)key).addReaderClosedListener(purgeReader);
|
||||
} else {
|
||||
// last chance
|
||||
reader.addReaderClosedListener(purgeReader);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue