From 57376f090503d7ef5bc38f138e58e64bdea284a3 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sat, 8 Mar 2014 17:01:49 -0700 Subject: Rename Transaction to Tx. I changed the Transaction/RWTransaction types to Tx/RWTx, respectively. This makes the naming more consistent with other packages such as database/sql. The txnid is changed to txid as well. --- meta.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta.go') 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()) -- cgit v1.2.3