Skip to content

Commit

Permalink
the compare should be >= instead of > (#2782)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangJian He authored Oct 23, 2021
1 parent 14ef56f commit 4117200
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void doCompactEntryLogs(double threshold, long maxTimeMillis) {
end = System.currentTimeMillis();
timeDiff = end - start;
}
if (meta.getUsage() >= threshold || (maxTimeMillis > 0 && timeDiff > maxTimeMillis) || !running) {
if (meta.getUsage() >= threshold || (maxTimeMillis > 0 && timeDiff >= maxTimeMillis) || !running) {
// We allow the usage limit calculation to continue so that we get a accurate
// report of where the usage was prior to running compaction.
continue;
Expand Down

0 comments on commit 4117200

Please sign in to comment.