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 same dc and other dc
Chris Lu3d87aa767da1
diff --git a/weed/wdclient/vid_map.go b/weed/wdclient/vid_map.goindex e0bea2a019..0effa22625 100644--- a/weed/wdclient/vid_map.go+++ b/weed/wdclient/vid_map.go@@ -73,9 +73,9 @@ func (vc *vidMap) LookupVolumeServerUrl(vid string) (serverUrls []string, err ervar sameDcServers, otherDcServers []stringfor _, loc := range locations {if vc.DataCenter == "" || loc.DataCenter == "" || vc.DataCenter != loc.DataCenter {- sameDcServers = append(sameDcServers, loc.Url)- } else {otherDcServers = append(otherDcServers, loc.Url)+ } else {+ sameDcServers = append(sameDcServers, loc.Url)}}rand.Shuffle(len(sameDcServers), func(i, j int) {