fix FieldCache holding hard ref to readers: LUCENE-754

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@488908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-12-20 03:47:09 +00:00
parent dc910bdc53
commit f4b3239092
2 changed files with 6 additions and 1 deletions

View File

@ -253,6 +253,11 @@ Bug fixes
{super.finalize();}" to make sure we don't miss finalizers in
classes above us. (Esmond Pitt via Mike McCandless)
28. LUCENE-754: Fix a problem introduced by LUCENE-651, causing
IndexReaders to hang around forever, in addition to not
fixing the original FieldCache performance problem.
(Chris Hostetter, Yonik Seeley)
Optimizations
1. LUCENE-586: TermDocs.skipTo() is now more efficient for

View File

@ -62,7 +62,7 @@ implements FieldCache {
}
if (value == null) {
value = new CreationPlaceholder();
innerCache.put(reader, value);
innerCache.put(key, value);
}
}
if (value instanceof CreationPlaceholder) {