diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-31 08:52:13 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-31 08:52:19 -0600 |
commit | 440b89418f5907099cf06764ad7f2b83cf12fbcf (patch) | |
tree | 6b0b06f7fc1ca4c4799ebb480961ed297bf9667b /cmd | |
parent | Merge pull request #98 from benbjohnson/fsck (diff) | |
download | dedo-440b89418f5907099cf06764ad7f2b83cf12fbcf.tar.gz dedo-440b89418f5907099cf06764ad7f2b83cf12fbcf.tar.xz |
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".
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bolt/pages.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 }) |