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
rename varaible
chrisluf5156cf3a8d0
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.goindex 6e91c31eb6..d330e9ec6b 100644--- a/weed/wdclient/masterclient.go+++ b/weed/wdclient/masterclient.go@@ -29,8 +29,8 @@ type MasterClient struct {vidMapvidMapCacheSize int- OnPeerUpdate func(update *master_pb.ClusterNodeUpdate, startFrom time.Time)- OnPeerUpdateAccessLock sync.RWMutex+ OnPeerUpdate func(update *master_pb.ClusterNodeUpdate, startFrom time.Time)+ OnPeerUpdateLock sync.RWMutex}func NewMasterClient(grpcDialOption grpc.DialOption, filerGroup string, clientType string, clientHost pb.ServerAddress, clientDataCenter string, rack string, masters map[string]pb.ServerAddress) *MasterClient {@@ -47,9 +47,9 @@ func NewMasterClient(grpcDialOption grpc.DialOption, filerGroup string, clientTy}func (mc *MasterClient) SetOnPeerUpdateFn(onPeerUpdate func(update *master_pb.ClusterNodeUpdate, startFrom time.Time)) {- mc.OnPeerUpdateAccessLock.Lock()+ mc.OnPeerUpdateLock.Lock()mc.OnPeerUpdate = onPeerUpdate- mc.OnPeerUpdateAccessLock.Unlock()+ mc.OnPeerUpdateLock.Unlock()}func (mc *MasterClient) GetLookupFileIdFunction() LookupFileIdFunctionType {@@ -227,7 +227,7 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedLif resp.ClusterNodeUpdate != nil {update := resp.ClusterNodeUpdate- mc.OnPeerUpdateAccessLock.RLock()+ mc.OnPeerUpdateLock.RLock()if mc.OnPeerUpdate != nil {if update.FilerGroup == mc.FilerGroup {if update.IsAdd {@@ -239,7 +239,7 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedLmc.OnPeerUpdate(update, time.Now())}}- mc.OnPeerUpdateAccessLock.RUnlock()+ mc.OnPeerUpdateLock.RUnlock()}}})