diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-26 15:11:47 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-26 15:11:47 -0600 |
commit | ba6badc57f93bdee732fbe177ecbdd84d876ce0f (patch) | |
tree | 942a1ef8f7b30751a7b3bec6db3d5e0bcc7e081b /db.go | |
parent | Remove wrapping test closures. (diff) | |
download | dedo-ba6badc57f93bdee732fbe177ecbdd84d876ce0f.tar.gz dedo-ba6badc57f93bdee732fbe177ecbdd84d876ce0f.tar.xz |
Move tests to a test package.
Diffstat (limited to 'db.go')
-rw-r--r-- | db.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -384,8 +384,8 @@ func (db *DB) beginRWTx() (*Tx, error) { // Free any pages associated with closed read-only transactions. var minid txid = 0xFFFFFFFFFFFFFFFF for _, t := range db.txs { - if t.id() < minid { - minid = t.id() + if t.meta.txid < minid { + minid = t.meta.txid } } if minid > 0 { |