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:
Uwe Schindler 2012-01-17 16:09:51 +00:00
parent 4f0e7add69
commit 59d1b112c0
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}
}