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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fail early if two filer stores are defined
Chris Lu63619f8b8e83
diff --git a/weed/filer2/configuration.go b/weed/filer2/configuration.goindex 14a9edd2c2..4b20b608b6 100644--- a/weed/filer2/configuration.go+++ b/weed/filer2/configuration.go@@ -13,6 +13,17 @@ var (func (f *Filer) LoadConfiguration(config *viper.Viper) {+ enabledStore := ""+ for _, store := range Stores {+ if config.GetBool(store.GetName() + ".enabled") {+ if enabledStore == "" {+ enabledStore = store.GetName()+ } else {+ glog.Fatalf("Filer store is enabled for both %s and %s", enabledStore, store.GetName())+ }+ }+ }+for _, store := range Stores {if config.GetBool(store.GetName() + ".enabled") {viperSub := config.Sub(store.GetName())