mirror of https://github.com/hak5/bolt.git
commit
43a1303c15
|
@ -645,7 +645,7 @@ func (b *Bucket) free() {
|
||||||
// dereference removes all references to the old mmap.
|
// dereference removes all references to the old mmap.
|
||||||
func (b *Bucket) dereference() {
|
func (b *Bucket) dereference() {
|
||||||
if b.rootNode != nil {
|
if b.rootNode != nil {
|
||||||
b.rootNode.dereference()
|
b.rootNode.root().dereference()
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, child := range b.buckets {
|
for _, child := range b.buckets {
|
||||||
|
|
Loading…
Reference in New Issue