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

Method minKeys

node.go:33–38  ·  view source on GitHub ↗

minKeys returns the minimum number of inodes this node should have.

()

Source from the content-addressed store, hash-verified

31
32// minKeys returns the minimum number of inodes this node should have.
33func (n *node) minKeys() int {
34 if n.isLeaf {
35 return 1
36 }
37 return 2
38}
39
40// size returns the size of the node after serialization.
41func (n *node) size() int {

Callers 1

rebalanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected