mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 18:27:21 +00:00
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…
x
Reference in New Issue
Block a user