aboutsummaryrefslogtreecommitdiff
path: root/db.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-07-26 15:11:47 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-07-26 15:11:47 -0600
commitba6badc57f93bdee732fbe177ecbdd84d876ce0f (patch)
tree942a1ef8f7b30751a7b3bec6db3d5e0bcc7e081b /db.go
parentRemove wrapping test closures. (diff)
downloaddedo-ba6badc57f93bdee732fbe177ecbdd84d876ce0f.tar.gz
dedo-ba6badc57f93bdee732fbe177ecbdd84d876ce0f.tar.xz
Move tests to a test package.
Diffstat (limited to 'db.go')
-rw-r--r--db.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/db.go b/db.go
index bb6beef..7364454 100644
--- a/db.go
+++ b/db.go
@@ -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 {