Skip to content

Commit

Permalink
Merge pull request #10656 from jpbetz/automated-cherry-pick-of-#10646…
Browse files Browse the repository at this point in the history
…-release-3.3

Automated cherry pick of #10646
  • Loading branch information
jpbetz authored Apr 18, 2019
2 parents e206a8b + 38bf1bd commit 5f4a455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvcc/kvstore_compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

func (s *store) scheduleCompaction(compactMainRev int64, keep map[revision]struct{}) bool {
totalStart := time.Now()
defer dbCompactionTotalDurations.Observe(float64(time.Since(totalStart) / time.Millisecond))
defer func() { dbCompactionTotalDurations.Observe(float64(time.Since(totalStart) / time.Millisecond)) }()
keyCompactions := 0
defer func() { dbCompactionKeysCounter.Add(float64(keyCompactions)) }()

Expand Down

0 comments on commit 5f4a455

Please sign in to comment.