mirror of https://github.com/etcd-io/bbolt.git
Merge pull request #22 from heyitsanthony/fill-compact
Set FillPercent=1.0 in 'bolt compact'.pull/20/head
commit
c5d7f33536
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue