LUCENE-2118: fix intermittent failure in TestIndexWriterMergePolicy.testMaxBufferedDocsChange

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034007 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-11-11 17:37:36 +00:00
parent b8d51b6ce0
commit 3701a49475
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ public abstract class LogMergePolicy extends MergePolicy {
// Now search backwards for the rightmost segment that // Now search backwards for the rightmost segment that
// falls into this level: // falls into this level:
float levelBottom; float levelBottom;
if (maxLevel < levelFloor) if (maxLevel <= levelFloor)
// All remaining segments fall into the min level // All remaining segments fall into the min level
levelBottom = -1.0F; levelBottom = -1.0F;
else { else {