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
refactor
Chris Lu2ad45ca04f2f
diff --git a/weed/command/filer.go b/weed/command/filer.goindex e5a3e379ad..56429ce361 100644--- a/weed/command/filer.go+++ b/weed/command/filer.go@@ -87,7 +87,7 @@ func (fo *FilerOptions) start() {masters := *f.mastersfs, nfs_err := weed_server.NewFilerServer(defaultMux, publicVolumeMux,- *fo.ip, *fo.port, strings.Split(masters, ","), *fo.collection,+ strings.Split(masters, ","), *fo.collection,*fo.defaultReplicaPlacement, *fo.redirectOnRead, *fo.disableDirListing,*fo.maxMB,*fo.secretKey,diff --git a/weed/server/filer_server.go b/weed/server/filer_server.goindex 6da6b5561a..f5784e82dd 100644--- a/weed/server/filer_server.go+++ b/weed/server/filer_server.go@@ -2,7 +2,6 @@ package weed_serverimport ("net/http"- "strconv""github.com/chrislusf/seaweedfs/weed/filer2"_ "github.com/chrislusf/seaweedfs/weed/filer2/cassandra"_ "github.com/chrislusf/seaweedfs/weed/filer2/leveldb"@@ -15,7 +14,6 @@ import ()type FilerServer struct {- port stringmasters []stringcollection stringdefaultReplication string@@ -26,7 +24,7 @@ type FilerServer struct {maxMB int}-func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, ip string, port int, masters []string, collection string,+func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, masters []string, collection string,replication string, redirectOnRead bool, disableDirListing bool,maxMB int,secret string,@@ -38,7 +36,6 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, ip string, port int,redirectOnRead: redirectOnRead,disableDirListing: disableDirListing,maxMB: maxMB,- port: ip + ":" + strconv.Itoa(port),}if len(masters) == 0 {