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

Method IncPageAlloc

tx.go:793–795  ·  view source on GitHub ↗

IncPageAlloc increases PageAlloc atomically and returns the new value.

(delta int64)

Source from the content-addressed store, hash-verified

791
792// IncPageAlloc increases PageAlloc atomically and returns the new value.
793func (s *TxStats) IncPageAlloc(delta int64) int64 {
794 return atomic.AddInt64(&s.PageAlloc, delta)
795}
796
797// GetCursorCount returns CursorCount atomically.
798func (s *TxStats) GetCursorCount() int64 {

Callers 3

addMethod · 0.95
allocateMethod · 0.80

Calls

no outgoing calls

Tested by 1