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.

add SetDefault function for Configuration

Chris Lu573b74f24fdd
diff --git a/weed/util/config.go b/weed/util/config.go
index 6a9ee582ae..4ba68b8006 100644
--- a/weed/util/config.go
+++ b/weed/util/config.go
@@ -10,6 +10,7 @@ type Configuration interface {
GetBool(key string) bool
GetInt(key string) int
GetStringSlice(key string) []string
+ SetDefault(key string, value interface{})
}
func LoadConfiguration(configFileName string, required bool) (loaded bool) {