dereference removes all references to the old mmap.
()
| 919 | |
| 920 | // dereference removes all references to the old mmap. |
| 921 | func (b *Bucket) dereference() { |
| 922 | if b.rootNode != nil { |
| 923 | b.rootNode.root().dereference() |
| 924 | } |
| 925 | |
| 926 | for _, child := range b.buckets { |
| 927 | child.dereference() |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | // pageNode returns the in-memory node, if it exists. |
| 932 | // Otherwise, returns the underlying page. |