Merge pull request #22 from heyitsanthony/fill-compact

Set FillPercent=1.0 in 'bolt compact'.
pull/20/head
Anthony Romano 2017-08-11 10:05:38 -07:00 committed by GitHub
commit c5d7f33536
1 changed files with 3 additions and 0 deletions

View File

@ -1650,6 +1650,9 @@ func (cmd *CompactCommand) compact(dst, src *bolt.DB) error {
}
}
// Fill the entire page for best compaction.
b.FillPercent = 1.0
// If there is no value then this is a bucket call.
if v == nil {
bkt, err := b.CreateBucket(k)