root returns the top-level node this node is attached to.
()
| 23 | |
| 24 | // root returns the top-level node this node is attached to. |
| 25 | func (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. |
| 33 | func (n *node) minKeys() int { |
no outgoing calls
no test coverage detected