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

Method root

node.go:25–30  ·  view source on GitHub ↗

root returns the top-level node this node is attached to.

()

Source from the content-addressed store, hash-verified

23
24// root returns the top-level node this node is attached to.
25func (n *node) root() *node {
26 if n.parent == nil {
27 return n
28 }
29 return n.parent.root()
30}
31
32// minKeys returns the minimum number of inodes this node should have.
33func (n *node) minKeys() int {

Callers 2

spillMethod · 0.80
dereferenceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected