mirror of https://github.com/apache/lucene.git
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:
parent
897ec3a8ef
commit
86922c495c
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue