diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2016-12-23 10:44:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 10:44:54 -0700 |
commit | 2e25e3bb4285d41d223bb80b12658a2c9b9bf3e3 (patch) | |
tree | 55c07decf54c82fe1ca6d0c625c91c3f0102cf67 /tx.go | |
parent | Merge pull request #636 from josharian/perf (diff) | |
parent | Allow GC to reclaim completed transactions (diff) | |
download | dedo-2e25e3bb4285d41d223bb80b12658a2c9b9bf3e3.tar.gz dedo-2e25e3bb4285d41d223bb80b12658a2c9b9bf3e3.tar.xz |
Merge pull request #641 from josharian/cleanup
Minor cleanup and bug fixes
Diffstat (limited to 'tx.go')
-rw-r--r-- | tx.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -381,7 +381,7 @@ func (tx *Tx) Check() <-chan error { func (tx *Tx) check(ch chan error) { // Check if any pages are double freed. freed := make(map[pgid]bool) - all := make([]pgid, tx.db.freelist.lenall()) + all := make([]pgid, tx.db.freelist.count()) tx.db.freelist.copyall(all) for _, id := range all { if freed[id] { |