LUCENE-3646: Fix a code relict from previous times :-)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1232450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-01-17 15:57:18 +00:00
parent dea4b911da
commit 4f0e7add69
1 changed files with 1 additions and 6 deletions

View File

@ -172,12 +172,7 @@ class FieldCacheImpl implements FieldCache {
// rather than relying on gc:
Object key = reader.getCoreCacheKey();
if (key instanceof IndexReader) {
((IndexReader)key).addReaderClosedListener(new IndexReader.ReaderClosedListener() {
@Override
public void onClose(IndexReader reader) {
FieldCache.DEFAULT.purge(reader);
}
});
((IndexReader)key).addReaderClosedListener(purgeReader);
}
}
}