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
chrislu11549706ef0f
diff --git a/weed/cluster/cluster.go b/weed/cluster/cluster.goindex 808adbeab3..e79000fbe5 100644--- a/weed/cluster/cluster.go+++ b/weed/cluster/cluster.go@@ -152,15 +152,7 @@ func (cluster *Cluster) AddClusterNode(ns, nodeType string, dataCenter DataCentecase BrokerType:return cluster.brokerGroups.AddClusterNode(filerGroup, nodeType, dataCenter, rack, address, version)case MasterType:- return []*master_pb.KeepConnectedResponse{- {- ClusterNodeUpdate: &master_pb.ClusterNodeUpdate{- NodeType: nodeType,- Address: string(address),- IsAdd: true,- },- },- }+ return buildClusterNodeUpdateMessage(true, filerGroup, nodeType, address)}return nil}@@ -173,15 +165,7 @@ func (cluster *Cluster) RemoveClusterNode(ns string, nodeType string, address pbcase BrokerType:return cluster.brokerGroups.RemoveClusterNode(filerGroup, nodeType, address)case MasterType:- return []*master_pb.KeepConnectedResponse{- {- ClusterNodeUpdate: &master_pb.ClusterNodeUpdate{- NodeType: nodeType,- Address: string(address),- IsAdd: false,- },- },- }+ return buildClusterNodeUpdateMessage(false, filerGroup, nodeType, address)}return nil}