aboutsummaryrefslogtreecommitdiff
path: root/cursor.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-07 10:37:50 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-07 10:37:50 -0600
commit0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe (patch)
tree8f876af64e7b40323e71f334a499a347cbb9fcc4 /cursor.go
parentAdd inline bucket support. (diff)
downloaddedo-0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe.tar.gz
dedo-0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe.tar.xz
Fix bucket free.
Diffstat (limited to 'cursor.go')
-rw-r--r--cursor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor.go b/cursor.go
index 56948fc..31a3d5f 100644
--- a/cursor.go
+++ b/cursor.go
@@ -148,7 +148,7 @@ func (c *Cursor) seek(seek []byte) (key []byte, value []byte, flags uint32) {
func (c *Cursor) first() {
for {
// Exit when we hit a leaf page.
- ref := &c.stack[len(c.stack)-1]
+ var ref = &c.stack[len(c.stack)-1]
if ref.isLeaf() {
break
}