Skip to content

Commit

Permalink
Merge pull request #13752 from kkkkun/delete-duplicate-code
Browse files Browse the repository at this point in the history
mvcc: clean up duplicate metrics name
  • Loading branch information
ptabor authored Mar 1, 2022
2 parents 088807c + 124bc1e commit 7c472a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions server/storage/mvcc/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,6 @@ func (s *store) setupMetricsReporter() {
reportDbTotalSizeInBytesMu.Lock()
reportDbTotalSizeInBytes = func() float64 { return float64(b.Size()) }
reportDbTotalSizeInBytesMu.Unlock()
reportDbTotalSizeInBytesDebugMu.Lock()
reportDbTotalSizeInBytesDebug = func() float64 { return float64(b.Size()) }
reportDbTotalSizeInBytesDebugMu.Unlock()
reportDbTotalSizeInUseInBytesMu.Lock()
reportDbTotalSizeInUseInBytes = func() float64 { return float64(b.SizeInUse()) }
reportDbTotalSizeInUseInBytesMu.Unlock()
Expand Down
4 changes: 0 additions & 4 deletions server/storage/mvcc/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ var (
reportDbTotalSizeInBytesMu sync.RWMutex
reportDbTotalSizeInBytes = func() float64 { return 0 }

// overridden by mvcc initialization
reportDbTotalSizeInBytesDebugMu sync.RWMutex
reportDbTotalSizeInBytesDebug = func() float64 { return 0 }

dbTotalSizeInUse = prometheus.NewGaugeFunc(prometheus.GaugeOpts{
Namespace: "etcd",
Subsystem: "mvcc",
Expand Down

0 comments on commit 7c472a9

Please sign in to comment.