From 86922c495c900beaec04557fb8ec2a6cdb21ef51 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Wed, 24 Nov 2010 19:48:18 +0000 Subject: [PATCH] LUCENE-2773: don't de-optimize an optimize index that's already in CFS format git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1038785 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/index/LogMergePolicy.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java b/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java index 1c729130c77..2e27170a9f6 100644 --- a/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java +++ b/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java @@ -231,8 +231,7 @@ public abstract class LogMergePolicy extends MergePolicy { return !hasDeletions && !info.hasSeparateNorms() && info.dir == w.getDirectory() && - (info.getUseCompoundFile() == useCompoundFile || - (noCFSRatio != 1.0 && !info.getUseCompoundFile())); + (info.getUseCompoundFile() == useCompoundFile || noCFSRatio < 1.0); } /**