aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-12-23 10:44:54 -0700
committerGitHub <noreply@github.com>2016-12-23 10:44:54 -0700
commit2e25e3bb4285d41d223bb80b12658a2c9b9bf3e3 (patch)
tree55c07decf54c82fe1ca6d0c625c91c3f0102cf67 /tx.go
parentMerge pull request #636 from josharian/perf (diff)
parentAllow GC to reclaim completed transactions (diff)
downloaddedo-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index 37a8ca1..6700308 100644
--- a/tx.go
+++ b/tx.go
@@ -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] {