aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-24 16:32:18 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-01-24 16:32:18 -0700
commit73ab1d420dedd965ebe6f814dcf016c8e10879f2 (patch)
tree2a025e8e8daeaba34953c6b92b83bd579c83962b /bucket.go
parentTODO (diff)
downloaddedo-73ab1d420dedd965ebe6f814dcf016c8e10879f2.tar.gz
dedo-73ab1d420dedd965ebe6f814dcf016c8e10879f2.tar.xz
TODO
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go30
1 files changed, 8 insertions, 22 deletions
diff --git a/bucket.go b/bucket.go
index ece92b5..f9c3566 100644
--- a/bucket.go
+++ b/bucket.go
@@ -1,31 +1,17 @@
package bolt
-const (
- MDB_DUPSORT = 0x04
-)
-
-// TODO: #define MDB_VALID 0x8000 /**< DB handle is valid, for me_dbflags */
-// TODO: #define PERSISTENT_FLAGS (0xffff & ~(MDB_VALID))
-// TODO: #define VALID_FLAGS (MDB_REVERSEKEY|MDB_DUPSORT|MDB_INTEGERKEY|MDB_DUPFIXED|MDB_INTEGERDUP|MDB_REVERSEDUP|MDB_CREATE)
-// TODO: #define FREE_DBI 0
+type bucketid uint32
type Bucket struct {
*bucket
- transaction *Transaction
- name string
- isNew bool
- dirty bool
- valid bool
+ name string
}
type bucket struct {
- id uint32
- pad uint32
- flags uint16
- depth uint16
- branches pgno
- leafs pgno
- overflows pgno
- entries uint64
- root pgno
+ id bucketid
+ flags uint32
+ root pgid
+ branches pgid
+ leafs pgid
+ entries uint64
}