Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit f0d0212

Browse files
authored
Merge pull request boltdb#601 from benbjohnson/stats-tx-n
Fix Stats.Sub() for Stats.TxN.
2 parents fff57c1 + 0d68f16 commit f0d0212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ func (s *Stats) Sub(other *Stats) Stats {
952952
diff.PendingPageN = s.PendingPageN
953953
diff.FreeAlloc = s.FreeAlloc
954954
diff.FreelistInuse = s.FreelistInuse
955-
diff.TxN = other.TxN - s.TxN
955+
diff.TxN = s.TxN - other.TxN
956956
diff.TxStats = s.TxStats.Sub(&other.TxStats)
957957
return diff
958958
}

0 commit comments

Comments
 (0)