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

Method GetWrite

tx.go:878–880  ·  view source on GitHub ↗

GetWrite returns Write atomically.

()

Source from the content-addressed store, hash-verified

876
877// GetWrite returns Write atomically.
878func (s *TxStats) GetWrite() int64 {
879 return atomic.LoadInt64(&s.Write)
880}
881
882// IncWrite increases Write atomically and returns the new value.
883func (s *TxStats) IncWrite(delta int64) int64 {

Callers 6

SubMethod · 0.95
TestTxStats_addFunction · 0.95
addMethod · 0.80
TestTxStats_SubFunction · 0.80
PrintStatsMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestTxStats_addFunction · 0.76
TestTxStats_SubFunction · 0.64