mirror of https://github.com/apache/lucene.git
LUCENE-9683: fix incorrect logic for measuring stall time information. (#2225)
This commit is contained in:
parent
89456686ed
commit
4da8f08c63
|
@ -598,10 +598,12 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (verbose() && startStallTime == 0) {
|
||||
message(" too many merges; stalling...");
|
||||
if (startStallTime == 0) {
|
||||
startStallTime = System.currentTimeMillis();
|
||||
if (verbose()) {
|
||||
message(" too many merges; stalling...");
|
||||
}
|
||||
}
|
||||
startStallTime = System.currentTimeMillis();
|
||||
doStall();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue