mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-01 06:40:45 +02:00
filer store: skip disabled location specific filer store initialization
fix https://github.com/seaweedfs/seaweedfs/issues/3971
This commit is contained in:
parent
7ac40ae3d4
commit
d90aa31d5f
|
@ -63,6 +63,11 @@ func (f *Filer) LoadConfiguration(config *util.ViperProxy) (isFresh bool) {
|
||||||
if !found {
|
if !found {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !config.GetBool(key + ".enabled") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore)
|
store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore)
|
||||||
if err := store.Initialize(config, key+"."); err != nil {
|
if err := store.Initialize(config, key+"."); err != nil {
|
||||||
glog.Fatalf("Failed to initialize store for %s: %+v", key, err)
|
glog.Fatalf("Failed to initialize store for %s: %+v", key, err)
|
||||||
|
|
Loading…
Reference in a new issue