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 <[email protected]>
  • Loading branch information
qsyqian committed Aug 30, 2024
1 parent fe796ab commit e8a02bd
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("key-compactions", 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 e8a02bd

Please sign in to comment.