aboutsummaryrefslogtreecommitdiff
path: root/meta.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-08 19:44:10 -0800
committerBen Johnson <benbjohnson@yahoo.com>2014-03-08 19:44:10 -0800
commita32d0c5c5f7913f09e2489ba3545a9e2d4865698 (patch)
treee215bb0cf8df72a53b662ff222c24a973e7faac3 /meta.go
parentAdd benchmarks. (diff)
parentRename Transaction to Tx. (diff)
downloaddedo-a32d0c5c5f7913f09e2489ba3545a9e2d4865698.tar.gz
dedo-a32d0c5c5f7913f09e2489ba3545a9e2d4865698.tar.xz
Merge pull request #60 from benbjohnson/tx
Rename Transaction to Tx.
Diffstat (limited to 'meta.go')
-rw-r--r--meta.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta.go b/meta.go
index 643d339..cee2d29 100644
--- a/meta.go
+++ b/meta.go
@@ -10,7 +10,7 @@ type meta struct {
buckets pgid
freelist pgid
pgid pgid
- txnid txnid
+ txid txid
}
// validate checks the marker bytes and version of the meta page to ensure it matches this binary.
@@ -31,13 +31,13 @@ func (m *meta) copy(dest *meta) {
dest.buckets = m.buckets
dest.freelist = m.freelist
dest.pgid = m.pgid
- dest.txnid = m.txnid
+ dest.txid = m.txid
}
// write writes the meta onto a page.
func (m *meta) write(p *page) {
// Page id is either going to be 0 or 1 which we can determine by the Txn ID.
- p.id = pgid(m.txnid % 2)
+ p.id = pgid(m.txid % 2)
p.flags |= metaPageFlag
m.copy(p.meta())