aboutsummaryrefslogtreecommitdiff
path: root/buckets.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-15 10:23:00 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-15 10:23:00 -0700
commite68bc0b4530475503afb34956dfb915673af919c (patch)
treec1747819b8499d03e4a5348b1f42d1c22b73e3f2 /buckets.go
parentMerge pull request #30 from benbjohnson/examples (diff)
downloaddedo-e68bc0b4530475503afb34956dfb915673af919c.tar.gz
dedo-e68bc0b4530475503afb34956dfb915673af919c.tar.xz
Add bucket sequence.
Diffstat (limited to 'buckets.go')
-rw-r--r--buckets.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/buckets.go b/buckets.go
index bb4b960..6d9f27c 100644
--- a/buckets.go
+++ b/buckets.go
@@ -63,7 +63,10 @@ func (b *buckets) read(p *page) {
// Associate keys and items.
for index, key := range keys {
- b.items[key] = &bucket{items[index].root}
+ b.items[key] = &bucket{
+ root: items[index].root,
+ sequence: items[index].sequence,
+ }
}
}