diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-18 12:35:13 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-18 12:35:13 -0600 |
commit | 56de9902a82bee5ba4743cef87125e9288de9fdd (patch) | |
tree | c71ca330eea56da7de76044b1f110bc808e81805 /db.go | |
parent | Merge pull request #199 from kardianos/patch-1 (diff) | |
parent | fix up freelist stats naming and add FreeAlloc (diff) | |
download | dedo-56de9902a82bee5ba4743cef87125e9288de9fdd.tar.gz dedo-56de9902a82bee5ba4743cef87125e9288de9fdd.tar.xz |
Merge pull request #201 from Shopify/freelist_stats_cleanup
Fix up freelist stats naming and add FreeAlloc
Diffstat (limited to 'db.go')
-rw-r--r-- | db.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -557,8 +557,9 @@ func (db *DB) allocate(count int) (*page, error) { // Stats represents statistics about the database. type Stats struct { // Freelist stats - FreelistN int // total number of pages on the freelist - FreelistAlloc int // total bytes used by the freelist and the pages on it + FreePageN int // total number of free pages + FreeAlloc int // total bytes allocated in free pages + FreelistInuse int // total bytes used by the freelist // Transaction stats TxN int // total number of started read transactions |