filer: add -defaultStoreDir so that filer.toml can be skipped

fix https://github.com/chrislusf/seaweedfs/issues/1659
This commit is contained in:
Chris Lu
2020-12-22 17:33:37 -08:00
parent a0990b929d
commit a1009e8044
2 changed files with 5 additions and 6 deletions

View File

@@ -109,6 +109,8 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
os.MkdirAll(option.DefaultLevelDbDir, 0755)
}
glog.V(0).Infof("default to create filer store dir in %s", option.DefaultLevelDbDir)
} else {
glog.Warningf("skipping default store dir in %s", option.DefaultLevelDbDir)
}
util.LoadConfiguration("notification", false)