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

Method IncRebalance

tx.go:833–835  ·  view source on GitHub ↗

IncRebalance increases Rebalance atomically and returns the new value.

(delta int64)

Source from the content-addressed store, hash-verified

831
832// IncRebalance increases Rebalance atomically and returns the new value.
833func (s *TxStats) IncRebalance(delta int64) int64 {
834 return atomic.AddInt64(&s.Rebalance, delta)
835}
836
837// GetRebalanceTime returns RebalanceTime atomically.
838func (s *TxStats) GetRebalanceTime() time.Duration {

Callers 3

addMethod · 0.95
rebalanceMethod · 0.80

Calls

no outgoing calls

Tested by 1