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
init candidate servers when setting a starting snapshot
chrislu658d302aa4ec
diff --git a/weed/cluster/lock_manager/lock_ring.go b/weed/cluster/lock_manager/lock_ring.goindex 808f559eee..e7f60e6d28 100644--- a/weed/cluster/lock_manager/lock_ring.go+++ b/weed/cluster/lock_manager/lock_ring.go@@ -79,6 +79,10 @@ func (r *LockRing) SetSnapshot(servers []pb.ServerAddress) {r.Lock()r.lastUpdateTime = time.Now()+ // init candidateServers+ for _, server := range servers {+ r.candidateServers[server] = struct{}{}+ }r.Unlock()r.addOneSnapshot(servers)