aboutsummaryrefslogtreecommitdiff
path: root/db.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-06-20 09:03:24 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-06-20 09:03:24 -0600
commit0a59a754725b284a8ba75161a801a3dd535b4e27 (patch)
treefdde635f974c64649488abea2faa7fee781355a4 /db.go
parentMerge pull request #202 from benbjohnson/refactor-split (diff)
parentsplit the freelist page count stats to free and pending (diff)
downloaddedo-0a59a754725b284a8ba75161a801a3dd535b4e27.tar.gz
dedo-0a59a754725b284a8ba75161a801a3dd535b4e27.tar.xz
Merge pull request #206 from Shopify/pending_page_stats
Split the freelist page count stats to free and pending
Diffstat (limited to 'db.go')
-rw-r--r--db.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/db.go b/db.go
index 9a125ee..d7037f9 100644
--- a/db.go
+++ b/db.go
@@ -559,7 +559,8 @@ func (db *DB) allocate(count int) (*page, error) {
// Stats represents statistics about the database.
type Stats struct {
// Freelist stats
- FreePageN int // total number of free pages
+ FreePageN int // total number of free pages on the freelist
+ PendingPageN int // total number of pending pages on the freelist
FreeAlloc int // total bytes allocated in free pages
FreelistInuse int // total bytes used by the freelist