diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LedgerMetadataIndex.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LedgerMetadataIndex.java index 51500ed797b..3362d5fd63b 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LedgerMetadataIndex.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LedgerMetadataIndex.java @@ -233,6 +233,7 @@ public void removeDeletedLedgers() throws IOException { for (Long ledgerId : pendingDeletedLedgers) { key.set(ledgerId); ledgersDb.delete(key.array); + ++deletedLedgers; } if (log.isDebugEnabled()) {