From 440b89418f5907099cf06764ad7f2b83cf12fbcf Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Mon, 31 Mar 2014 08:52:13 -0600 Subject: Write freelist after each commit. Well, this is embarassing. Somehow the freelist was never getting written after each commit. This commit fixes that and fixes a small reporting issue with "bolt pages". --- cmd/bolt/pages.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/bolt/pages.go b/cmd/bolt/pages.go index 2b55c69..ab2b67d 100644 --- a/cmd/bolt/pages.go +++ b/cmd/bolt/pages.go @@ -39,7 +39,10 @@ func Pages(path string) { overflow = strconv.Itoa(p.OverflowCount) } printf("%-8d %-10s %-6d %-6s\n", p.ID, p.Type, p.Count, overflow) - id += 1 + p.OverflowCount + id += 1 + if p.Type != "free" { + id += p.OverflowCount + } } return nil }) -- cgit v1.2.3