Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

filer store: skip disabled location specific filer store initialization

chrislud90aa31d5f5b
diff --git a/weed/filer/configuration.go b/weed/filer/configuration.go
index 563ef1d559..4ed19eee31 100644
--- a/weed/filer/configuration.go
+++ b/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)