Skip to content

Commit

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

Automated cherry pick of #10646
  • Loading branch information
jpbetz committed Apr 18, 2019
2 parents e06761e + bcbe6db commit 42f7d25
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)) }()

end := make([]byte, 8)
binary.BigEndian.PutUint64(end, uint64(compactMainRev+1))
Expand Down

0 comments on commit 42f7d25

Please sign in to comment.