MCPcopy
hub / github.com/etcd-io/bbolt / IncRebalanceTime

Method IncRebalanceTime

tx.go:843–845  ·  view source on GitHub ↗

IncRebalanceTime increases RebalanceTime atomically and returns the new value.

(delta time.Duration)

Source from the content-addressed store, hash-verified

841
842// IncRebalanceTime increases RebalanceTime atomically and returns the new value.
843func (s *TxStats) IncRebalanceTime(delta time.Duration) time.Duration {
844 return atomicAddDuration(&s.RebalanceTime, delta)
845}
846
847// GetSplit returns Split atomically.
848func (s *TxStats) GetSplit() int64 {

Callers 3

addMethod · 0.95
CommitMethod · 0.80

Calls 1

atomicAddDurationFunction · 0.85

Tested by 1