aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/tx.go b/tx.go
index 9ab1178..5cb99e0 100644
--- a/tx.go
+++ b/tx.go
@@ -236,9 +236,7 @@ func (tx *Tx) close() {
tx.db.rwlock.Unlock()
// Merge statistics.
- tx.db.statlock.Lock()
- tx.db.stats.TxStats.add(&tx.stats)
- tx.db.statlock.Unlock()
+ tx.db.mergeStats(&tx.stats)
} else {
tx.db.removeTx(tx)
}