From e8a02bd335c08db10ba81bd3e0775ab6b81278bd Mon Sep 17 00:00:00 2001 From: qsyqian Date: Fri, 30 Aug 2024 16:51:26 +0800 Subject: [PATCH] compact: add log for keyCompactions when finished compaction Signed-off-by: qsyqian --- server/storage/mvcc/kvstore_compaction.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/storage/mvcc/kvstore_compaction.go b/server/storage/mvcc/kvstore_compaction.go index 45409114e392..512ed1eaa2ee 100644 --- a/server/storage/mvcc/kvstore_compaction.go +++ b/server/storage/mvcc/kvstore_compaction.go @@ -72,6 +72,7 @@ func (s *store) scheduleCompaction(compactMainRev, prevCompactRev int64) (KeyVal "finished scheduled compaction", zap.Int64("compact-revision", compactMainRev), zap.Duration("took", time.Since(totalStart)), + zap.Int("key-compactions", keyCompactions), zap.Uint32("hash", hash.Hash), zap.Int64("current-db-size-bytes", size), zap.String("current-db-size", humanize.Bytes(uint64(size))),