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
Fix block-waiting for leader when there are no volumes
chenwanlif47f8be912f0
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.goindex f58c28504f..b268539456 100644--- a/weed/wdclient/masterclient.go+++ b/weed/wdclient/masterclient.go@@ -63,6 +63,11 @@ func (mc *MasterClient) tryAllMasters() {return err}+ if mc.currentMaster == "" {+ glog.V(0).Infof("Connected to %v", master)+ mc.currentMaster = master+ }+for {if volumeLocation, err := stream.Recv(); err != nil {glog.V(0).Infof("failed to receive from %s: %v", master, err)@@ -78,12 +83,6 @@ func (mc *MasterClient) tryAllMasters() {for _, deletedVid := range volumeLocation.DeletedVids {mc.deleteLocation(deletedVid, loc)}-- if mc.currentMaster == "" {- glog.V(0).Infof("Connected to %v", master)- mc.currentMaster = master- }-}}