Skip to content

Commit

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

Automated cherry pick of etcd-io#10646
  • Loading branch information
jpbetz authored Apr 18, 2019
2 parents 45d616a + 1364ca2 commit 5eaa1e9
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 5eaa1e9

Please sign in to comment.