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:
Michael McCandless 2013-04-28 22:28:14 +00:00
parent d5ebf16866
commit 1de26ff2ee
1 changed files with 1 additions and 1 deletions

View File

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