diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-15 07:45:39 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-15 07:45:39 -0600 |
commit | 89f973561053b593a1740128b40ceab25df84935 (patch) | |
tree | dbc4f69d728c34c6edc6d41872a21a2200d41c76 /cmd/bolt/main.go | |
parent | Merge pull request #224 from benbjohnson/rebalance-time (diff) | |
parent | Add DB.NoSync option for bulk loading. (diff) | |
download | dedo-89f973561053b593a1740128b40ceab25df84935.tar.gz dedo-89f973561053b593a1740128b40ceab25df84935.tar.xz |
Merge pull request #225 from benbjohnson/no-sync
Add DB.NoSync option for bulk loading.
Diffstat (limited to 'cmd/bolt/main.go')
-rw-r--r-- | cmd/bolt/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index a79302d..95bd813 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -118,6 +118,7 @@ func NewApp() *cli.App { &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: "no-sync", Usage: "Skip fsync on every commit"}, &cli.BoolFlag{Name: "work", Usage: "Print the temp db and do not delete on exit"}, }, Action: func(c *cli.Context) { @@ -139,6 +140,7 @@ func NewApp() *cli.App { BlockProfile: c.String("blockprofile"), StatsInterval: statsInterval, FillPercent: c.Float64("fill-percent"), + NoSync: c.Bool("no-sync"), Clean: !c.Bool("work"), }) }, |