lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1038785 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java
Date Wed, 24 Nov 2010 19:48:18 GMT
Author: mikemccand
Date: Wed Nov 24 19:48:18 2010
New Revision: 1038785

URL: http://svn.apache.org/viewvc?rev=1038785&view=rev
Log:
LUCENE-2773: don't de-optimize an optimize index that's already in CFS format

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java?rev=1038785&r1=1038784&r2=1038785&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java Wed Nov 24
19:48:18 2010
@@ -231,8 +231,7 @@ public abstract class LogMergePolicy ext
     return !hasDeletions &&
       !info.hasSeparateNorms() &&
       info.dir == w.getDirectory() &&
-      (info.getUseCompoundFile() == useCompoundFile ||
-       (noCFSRatio != 1.0 && !info.getUseCompoundFile()));
+      (info.getUseCompoundFile() == useCompoundFile || noCFSRatio < 1.0);
   }
 
   /**



Mime
View raw message