aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-01 09:13:59 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-03-01 09:13:59 -0700
commita1f43f4d60bf434baebf13b4810e5db4916baec5 (patch)
tree75850081fdb236f37c82d6e8fcd4cde5b81354d8 /bucket.go
parentMerge branch 'master' of https://github.com/boltdb/bolt (diff)
downloaddedo-a1f43f4d60bf434baebf13b4810e5db4916baec5.tar.gz
dedo-a1f43f4d60bf434baebf13b4810e5db4916baec5.tar.xz
Allow reads of unflushed nodes.
This commit allows cursors to read updated values from within the RWTransaction.
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucket.go b/bucket.go
index d62d798..6c1eb5c 100644
--- a/bucket.go
+++ b/bucket.go
@@ -35,7 +35,7 @@ func (b *Bucket) Cursor() *Cursor {
return &Cursor{
transaction: b.transaction,
root: b.root,
- stack: make([]pageElementRef, 0),
+ stack: make([]elemRef, 0),
}
}