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

Method IncSpillTime

tx.go:873–875  ·  view source on GitHub ↗

IncSpillTime increases SpillTime atomically and returns the new value.

(delta time.Duration)

Source from the content-addressed store, hash-verified

871
872// IncSpillTime increases SpillTime atomically and returns the new value.
873func (s *TxStats) IncSpillTime(delta time.Duration) time.Duration {
874 return atomicAddDuration(&s.SpillTime, delta)
875}
876
877// GetWrite returns Write atomically.
878func (s *TxStats) GetWrite() int64 {

Callers 3

addMethod · 0.95
CommitMethod · 0.80

Calls 1

atomicAddDurationFunction · 0.85

Tested by 1