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
This commit is contained in:
Michael McCandless 2010-11-24 19:48:18 +00:00
parent 897ec3a8ef
commit 86922c495c
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
/**