horizonzy commented on code in PR #4071:
URL: https://github.com/apache/bookkeeper/pull/4071#discussion_r1316595538
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java:
##########
@@ -591,6 +593,13 @@ void doCompactEntryLogs(double threshold, long
maxTimeMillis) throws EntryLogMet
entryLogUsageBuckets);
final int maxBucket = calculateUsageIndex(numBuckets, threshold);
+ int totalEntryLogIds = 0;
+ for (int currBucket = 0; currBucket <= maxBucket; currBucket++) {
+ totalEntryLogIds = compactableBuckets.get(currBucket).size();
Review Comment:
`totalEntryLogIds = compactableBuckets.get(currBucket).size();`
->
`totalEntryLogIds += compactableBuckets.get(currBucket).size(); `
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]