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
chrisluc59068d0f307
diff --git a/weed/filer/filer.go b/weed/filer/filer.goindex bbe22e1058..73ab3022f3 100644--- a/weed/filer/filer.go+++ b/weed/filer/filer.go@@ -68,12 +68,12 @@ func NewFiler(masters map[string]pb.ServerAddress, grpcDialOption grpc.DialOptioreturn f}-func (f *Filer) AggregateFromPeers(self pb.ServerAddress) {+func (f *Filer) AggregateFromPeers(self pb.ServerAddress, existingNodes []*master_pb.ClusterNodeUpdate) {f.MetaAggregator = NewMetaAggregator(f, self, f.GrpcDialOption)f.MasterClient.OnPeerUpdate = f.MetaAggregator.OnPeerUpdate- for _, peerUpdate := range f.ListExistingPeerUpdates() {+ for _, peerUpdate := range existingNodes {f.MetaAggregator.OnPeerUpdate(peerUpdate)}diff --git a/weed/server/filer_server.go b/weed/server/filer_server.goindex 82b15084d8..b52baf9c95 100644--- a/weed/server/filer_server.go+++ b/weed/server/filer_server.go@@ -164,7 +164,9 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)readonlyMux.HandleFunc("/", fs.readonlyFilerHandler)}- fs.filer.AggregateFromPeers(option.Host)+ existingNodes := fs.filer.ListExistingPeerUpdates()++ fs.filer.AggregateFromPeers(option.Host, existingNodes)fs.filer.LoadBuckets()