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

Method free

node.go:494–499  ·  view source on GitHub ↗

free adds the node's underlying page to the freelist.

()

Source from the content-addressed store, hash-verified

492
493// free adds the node's underlying page to the freelist.
494func (n *node) free() {
495 if n.pgid != 0 {
496 n.bucket.tx.db.freelist.Free(n.bucket.tx.meta.Txid(), n.bucket.tx.page(n.pgid))
497 n.pgid = 0
498 }
499}
500
501// dump writes the contents of the node to STDERR for debugging purposes.
502/*

Callers 1

rebalanceMethod · 0.95

Calls 3

TxidMethod · 0.80
FreeMethod · 0.65
pageMethod · 0.45

Tested by

no test coverage detected