minKeys returns the minimum number of inodes this node should have.
()
| 31 | |
| 32 | // minKeys returns the minimum number of inodes this node should have. |
| 33 | func (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. |
| 41 | func (n *node) size() int { |