diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-27 11:40:46 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-27 11:40:46 -0600 |
commit | e4ad031878e4503dc2bd931accc4fdcc6215efcc (patch) | |
tree | 73df1db1cc49f25cef36eb876758bcd818fd8e2a /db.go | |
parent | Minor fix. (diff) | |
parent | Copy the free pages stats from the receiver (diff) | |
download | dedo-e4ad031878e4503dc2bd931accc4fdcc6215efcc.tar.gz dedo-e4ad031878e4503dc2bd931accc4fdcc6215efcc.tar.xz |
Merge pull request #214 from Shopify/fix_stats_sub
Copy the free pages stats from the receiver
Diffstat (limited to 'db.go')
-rw-r--r-- | db.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -579,6 +579,10 @@ func (s *Stats) Sub(other *Stats) Stats { return *s } var diff Stats + diff.FreePageN = s.FreePageN + diff.PendingPageN = s.PendingPageN + diff.FreeAlloc = s.FreeAlloc + diff.FreelistInuse = s.FreelistInuse diff.TxN = other.TxN - s.TxN diff.TxStats = s.TxStats.Sub(&other.TxStats) return diff |