diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-08 08:10:14 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-09 09:26:34 -0600 |
commit | a5cb717fc7741a98adbc31d082638835e81a97b5 (patch) | |
tree | 6e9c1e96b18c06213d5bd431483ca0bb62248bb5 /bucket.go | |
parent | Merge pull request #154 from benbjohnson/inline-buckets (diff) | |
download | dedo-a5cb717fc7741a98adbc31d082638835e81a97b5.tar.gz dedo-a5cb717fc7741a98adbc31d082638835e81a97b5.tar.xz |
Fix deletion reclamation.
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -590,16 +590,13 @@ func (b *Bucket) free() { // dereference removes all references to the old mmap. func (b *Bucket) dereference() { - for _, n := range b.nodes { - n.dereference() + if b.rootNode != nil { + b.rootNode.dereference() } for _, child := range b.buckets { child.dereference() } - - // Update statistics - b.tx.stats.NodeDeref += len(b.nodes) } // pageNode returns the in-memory node, if it exists. |