From 7fb06feea4012543b6a1b0726a09e9a4c4a84933 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sat, 15 Feb 2014 21:50:34 -0700 Subject: Add parallel usage test and race detector. --- rwtransaction.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rwtransaction.go') diff --git a/rwtransaction.go b/rwtransaction.go index 568960a..afb55c8 100644 --- a/rwtransaction.go +++ b/rwtransaction.go @@ -20,9 +20,7 @@ func (t *RWTransaction) init(db *DB) { t.Transaction.init(db) t.pages = make(map[pgid]*page) - // Copy the meta and increase the transaction id. - t.meta = &meta{} - db.meta().copy(t.meta) + // Increment the transaction id. t.meta.txnid += txnid(1) } -- cgit v1.2.3