LUCENE-6119: set initial rate for forced merge correctly

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1650463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-01-09 09:30:43 +00:00
parent 8d7681e72c
commit e947b4ad66
1 changed files with 8 additions and 1 deletions

View File

@ -722,7 +722,14 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
}
}
newMerge.rateLimiter.setMBPerSec(targetMBPerSec);
double rate;
if (newMerge.maxNumSegments != -1) {
rate = forceMergeMBPerSec;
} else {
rate = targetMBPerSec;
}
newMerge.rateLimiter.setMBPerSec(rate);
targetMBPerSecChanged();
}