Skip to content

Commit

Permalink
compact: add log for keyCompactions when finished compaction
Browse files Browse the repository at this point in the history
Signed-off-by: qsyqian <qsyqian@gmail.com>
  • Loading branch information
qsyqian committed Sep 9, 2024
1 parent fe796ab commit 266270c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/storage/mvcc/kvstore_compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("number-of-keys-compacted", keyCompactions),
zap.Uint32("hash", hash.Hash),
zap.Int64("current-db-size-bytes", size),
zap.String("current-db-size", humanize.Bytes(uint64(size))),
Expand Down

0 comments on commit 266270c

Please sign in to comment.