Browse Source

filer store: skip disabled location specific filer store initialization

fix https://github.com/seaweedfs/seaweedfs/issues/3971
pull/3977/head
chrislu 2 years ago
parent
commit
d90aa31d5f
  1. 5
      weed/filer/configuration.go

5
weed/filer/configuration.go

@ -63,6 +63,11 @@ func (f *Filer) LoadConfiguration(config *util.ViperProxy) (isFresh bool) {
if !found {
continue
}
if !config.GetBool(key + ".enabled") {
continue
}
store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore)
if err := store.Initialize(config, key+"."); err != nil {
glog.Fatalf("Failed to initialize store for %s: %+v", key, err)

Loading…
Cancel
Save