mirror of https://github.com/apache/lucene.git
don't do random force merges when NoMergePolicy is in use
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1476848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5ebf16866
commit
1de26ff2ee
|
@ -103,7 +103,7 @@ public class RandomIndexWriter implements Closeable {
|
|||
|
||||
// Make sure we sometimes test indices that don't get
|
||||
// any forced merges:
|
||||
doRandomForceMerge = r.nextBoolean();
|
||||
doRandomForceMerge = !(c.getMergePolicy() instanceof NoMergePolicy) && r.nextBoolean();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue