diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2016-10-03 13:08:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 13:08:47 -0600 |
commit | f0d021274dede8e672f17a2dbcb997c5f0760c41 (patch) | |
tree | b030b5025c9984cc3cd55dba574b5e29e6de6dfd | |
parent | Merge pull request #595 from namore/add_warning_foreach_keys (diff) | |
parent | Fix Stats.Sub() for Stats.TxN. (diff) | |
download | dedo-f0d021274dede8e672f17a2dbcb997c5f0760c41.tar.gz dedo-f0d021274dede8e672f17a2dbcb997c5f0760c41.tar.xz |
Merge pull request #601 from benbjohnson/stats-tx-n
Fix Stats.Sub() for Stats.TxN.
-rw-r--r-- | db.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -952,7 +952,7 @@ func (s *Stats) Sub(other *Stats) Stats { diff.PendingPageN = s.PendingPageN diff.FreeAlloc = s.FreeAlloc diff.FreelistInuse = s.FreelistInuse - diff.TxN = other.TxN - s.TxN + diff.TxN = s.TxN - other.TxN diff.TxStats = s.TxStats.Sub(&other.TxStats) return diff } |