lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r950465 - /lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/SegmentReader.java
Date Wed, 02 Jun 2010 10:05:12 GMT
Author: mikemccand
Date: Wed Jun  2 10:05:12 2010
New Revision: 950465

URL: http://svn.apache.org/viewvc?rev=950465&view=rev
Log:
LUCENE-2135: don't evict from FieldCache when origInstance is null

Modified:
    lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/SegmentReader.java

Modified: lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/SegmentReader.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/SegmentReader.java?rev=950465&r1=950464&r2=950465&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/SegmentReader.java (original)
+++ lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/SegmentReader.java Wed
Jun  2 10:05:12 2010
@@ -243,7 +243,7 @@ public class SegmentReader extends Index
         }
 
         // Force FieldCache to evict our entries at this point
-        if (freqStream != null) {
+        if (origInstance != null) {
           FieldCache.DEFAULT.purge(origInstance);
         }
       }



Mime
View raw message