diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-15 22:09:35 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-15 22:09:35 -0700 |
commit | 3f0daf11ca5f232baa9a891b4301822d2b0cbeeb (patch) | |
tree | 057b2bf9d7487343f477f62726919421dc66b6b6 /rwtransaction.go | |
parent | Merge pull request #32 from benbjohnson/blocks (diff) | |
parent | Add parallel usage test and race detector. (diff) | |
download | dedo-3f0daf11ca5f232baa9a891b4301822d2b0cbeeb.tar.gz dedo-3f0daf11ca5f232baa9a891b4301822d2b0cbeeb.tar.xz |
Merge pull request #34 from benbjohnson/multithreading
Race Detection
Diffstat (limited to 'rwtransaction.go')
-rw-r--r-- | rwtransaction.go | 4 |
1 files changed, 1 insertions, 3 deletions
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) } |