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.

small refactoring

Chris Lu2e427c66acb9
diff --git a/weed/command/filer.go b/weed/command/filer.go
index 8449d84ae2..17f2fbdcfd 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -88,10 +88,8 @@ func (fo *FilerOptions) start() {
publicVolumeMux = http.NewServeMux()
}
- masters := *f.masters
-
fs, nfs_err := weed_server.NewFilerServer(defaultMux, publicVolumeMux, &weed_server.FilerOption{
- Masters: strings.Split(masters, ","),
+ Masters: strings.Split(*f.masters, ","),
Collection: *f.collection,
DefaultReplication: *f.defaultReplicaPlacement,
RedirectOnRead: *f.redirectOnRead,