mirror of https://github.com/apache/lucene.git
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:
parent
8d7681e72c
commit
e947b4ad66
|
@ -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();
|
targetMBPerSecChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue