aboutsummaryrefslogtreecommitdiff
path: root/transaction.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-05 22:15:47 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-05 22:15:47 -0700
commit0ed3dc3071d7ef0503f3fcbd015b63bbd6eae93e (patch)
treeac84cf42ed379c1d7b9b0d094a1ac2fe02869dd2 /transaction.go
parentMerge pull request #7 from benbjohnson/delete (diff)
downloaddedo-0ed3dc3071d7ef0503f3fcbd015b63bbd6eae93e.tar.gz
dedo-0ed3dc3071d7ef0503f3fcbd015b63bbd6eae93e.tar.xz
Rename sys ☞ buckets.
Diffstat (limited to '')
-rw-r--r--transaction.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/transaction.go b/transaction.go
index 29337c6..5733e9e 100644
--- a/transaction.go
+++ b/transaction.go
@@ -13,7 +13,7 @@ type Transaction struct {
id int
db *DB
meta *meta
- sys *sys
+ buckets *buckets
pages map[pgid]*page
}
@@ -23,8 +23,8 @@ func (t *Transaction) init(db *DB) {
t.meta = db.meta()
t.pages = nil
- t.sys = &sys{}
- t.sys.read(t.page(t.meta.sys))
+ t.buckets = &buckets{}
+ t.buckets.read(t.page(t.meta.buckets))
}
func (t *Transaction) Close() {
@@ -37,8 +37,7 @@ func (t *Transaction) DB() *DB {
// Bucket retrieves a bucket by name.
func (t *Transaction) Bucket(name string) *Bucket {
- // Lookup bucket from the system page.
- b := t.sys.get(name)
+ b := t.buckets.get(name)
if b == nil {
return nil
}