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

Method IncWrite

tx.go:883–885  ·  view source on GitHub ↗

IncWrite increases Write atomically and returns the new value.

(delta int64)

Source from the content-addressed store, hash-verified

881
882// IncWrite increases Write atomically and returns the new value.
883func (s *TxStats) IncWrite(delta int64) int64 {
884 return atomic.AddInt64(&s.Write, delta)
885}
886
887// GetWriteTime returns WriteTime atomically.
888func (s *TxStats) GetWriteTime() time.Duration {

Callers 4

addMethod · 0.95
writeMethod · 0.80
writeMetaMethod · 0.80

Calls

no outgoing calls

Tested by 1