Browse Source

deprecating "filer.options.buckets_fsync" in filer.toml

logrus
Chris Lu 4 years ago
parent
commit
ef3e068c51
  1. 4
      weed/command/scaffold.go
  2. 1
      weed/server/filer_server.go

4
weed/command/scaffold.go

@ -76,10 +76,6 @@ const (
recursive_delete = false
# directories under this folder will be automatically creating a separate bucket
buckets_folder = "/buckets"
buckets_fsync = [ # a list of buckets with all write requests fsync=true
"important_bucket",
"should_always_fsync",
]
####################################################
# The following are filer store options

1
weed/server/filer_server.go

@ -114,6 +114,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
fs.option.recursiveDelete = v.GetBool("filer.options.recursive_delete")
v.SetDefault("filer.options.buckets_folder", "/buckets")
fs.filer.DirBucketsPath = v.GetString("filer.options.buckets_folder")
// TODO deprecated, will be be removed after 2020-12-31
fs.filer.FsyncBuckets = v.GetStringSlice("filer.options.buckets_fsync")
fs.filer.LoadConfiguration(v)

Loading…
Cancel
Save