diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-07 16:24:51 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-11 12:36:54 -0600 |
commit | 698b07b074dc554578ecddd138972702f46d0879 (patch) | |
tree | f171f10bd4f17986cb9120d71263995b28273a7a /page.go | |
parent | Update cursor benchmark. (diff) | |
download | dedo-698b07b074dc554578ecddd138972702f46d0879.tar.gz dedo-698b07b074dc554578ecddd138972702f46d0879.tar.xz |
Add nested buckets.
This commit adds the ability to create buckets inside of other buckets.
It also replaces the buckets page with a root bucket.
Fixes #56.
Diffstat (limited to 'page.go')
-rw-r--r-- | page.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -19,10 +19,13 @@ const ( branchPageFlag = 0x01 leafPageFlag = 0x02 metaPageFlag = 0x04 - bucketsPageFlag = 0x08 freelistPageFlag = 0x10 ) +const ( + bucketLeafFlag = 0x01 +) + type pgid uint64 type page struct { @@ -41,8 +44,6 @@ func (p *page) typ() string { return "leaf" } else if (p.flags & metaPageFlag) != 0 { return "meta" - } else if (p.flags & bucketsPageFlag) != 0 { - return "buckets" } else if (p.flags & freelistPageFlag) != 0 { return "freelist" } |