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

Method GetCursorCount

tx.go:798–800  ·  view source on GitHub ↗

GetCursorCount returns CursorCount atomically.

()

Source from the content-addressed store, hash-verified

796
797// GetCursorCount returns CursorCount atomically.
798func (s *TxStats) GetCursorCount() int64 {
799 return atomic.LoadInt64(&s.CursorCount)
800}
801
802// IncCursorCount increases CursorCount atomically and return the new value.
803func (s *TxStats) IncCursorCount(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