aboutsummaryrefslogtreecommitdiff
path: root/transaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'transaction.go')
-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
}