diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-15 14:25:29 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-15 14:25:29 -0600 |
commit | cc6302194b6134806669cbeafcaf799fa0ea040c (patch) | |
tree | 7ca8faaae8099222c0c7964eee3e0a95dea5bd51 /cmd/bolt/main.go | |
parent | Merge pull request #165 from benbjohnson/strict-mode (diff) | |
parent | Change verbiage, fix node test. (diff) | |
download | dedo-cc6302194b6134806669cbeafcaf799fa0ea040c.tar.gz dedo-cc6302194b6134806669cbeafcaf799fa0ea040c.tar.xz |
Merge pull request #166 from benbjohnson/fill-percent
Add option to adjust fill percentage.
Diffstat (limited to 'cmd/bolt/main.go')
-rw-r--r-- | cmd/bolt/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 66c33d2..44ba5a1 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -8,6 +8,7 @@ import ( "os" "time" + "github.com/boltdb/bolt" "github.com/codegangsta/cli" ) @@ -114,6 +115,7 @@ func NewApp() *cli.App { &cli.StringFlag{Name: "memprofile", Usage: "Memory profile output path"}, &cli.StringFlag{Name: "blockprofile", Usage: "Block profile output path"}, &cli.StringFlag{Name: "stats-interval", Value: "0s", Usage: "Continuous stats interval"}, + &cli.Float64Flag{Name: "fill-percent", Value: bolt.DefaultFillPercent, Usage: "Fill percentage"}, &cli.BoolFlag{Name: "work", Usage: "Print the temp db and do not delete on exit"}, }, Action: func(c *cli.Context) { @@ -134,6 +136,7 @@ func NewApp() *cli.App { MemProfile: c.String("memprofile"), BlockProfile: c.String("blockprofile"), StatsInterval: statsInterval, + FillPercent: c.Float64("fill-percent"), Clean: !c.Bool("work"), }) }, |