mirror of https://github.com/apache/lucene.git
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:
parent
dc910bdc53
commit
f4b3239092
|
@ -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
|
||||
|
|
|
@ -62,7 +62,7 @@ implements FieldCache {
|
|||
}
|
||||
if (value == null) {
|
||||
value = new CreationPlaceholder();
|
||||
innerCache.put(reader, value);
|
||||
innerCache.put(key, value);
|
||||
}
|
||||
}
|
||||
if (value instanceof CreationPlaceholder) {
|
||||
|
|
Loading…
Reference in New Issue