aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-06-03 13:21:28 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-06-03 13:40:24 -0600
commit54cad40a785deddda2d4b903f048fdfb43a94927 (patch)
treec4d06f342b5e53d5eea7a34d3d5138db74f26b15 /bucket.go
parentAllow split nodes to be merged with the next node. (diff)
downloaddedo-54cad40a785deddda2d4b903f048fdfb43a94927.tar.gz
dedo-54cad40a785deddda2d4b903f048fdfb43a94927.tar.xz
Fix merge-split spill issues.
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bucket.go b/bucket.go
index 2338a8b..e66d41c 100644
--- a/bucket.go
+++ b/bucket.go
@@ -613,6 +613,7 @@ func (b *Bucket) rebalance() {
// node creates a node from a page and associates it with a given parent.
func (b *Bucket) node(pgid pgid, parent *node) *node {
_assert(b.nodes != nil, "nodes map expected")
+
// Retrieve node if it's already been created.
if n := b.nodes[pgid]; n != nil {
return n