Browse Source

Set default leveldb2 enabled

avoid Filer store is enabled for both leveldb2 and mysql
pull/2728/head
Konstantin Lebedev 3 years ago
parent
commit
cf444ebd07
  1. 4
      weed/server/filer_server.go

4
weed/server/filer_server.go

@ -130,8 +130,8 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
go fs.filer.KeepMasterClientConnected()
if !util.LoadConfiguration("filer", false) {
v.Set("leveldb2.enabled", true)
v.Set("leveldb2.dir", option.DefaultLevelDbDir)
v.SetDefault("leveldb2.enabled", true)
v.SetDefault("leveldb2.dir", option.DefaultLevelDbDir)
_, err := os.Stat(option.DefaultLevelDbDir)
if os.IsNotExist(err) {
os.MkdirAll(option.DefaultLevelDbDir, 0755)

Loading…
Cancel
Save