Skip to content

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.

fix compilation error

Chris Lu92c7f7e069ae
diff --git a/weed/wdclient/vid_map.go b/weed/wdclient/vid_map.go
index 4c43a225a8..06308944d7 100644
--- a/weed/wdclient/vid_map.go
+++ b/weed/wdclient/vid_map.go
@@ -86,7 +86,7 @@ func (vc *vidMap) GetRandomLocation(vid uint32) (serverUrl string, err error) {
locations := vc.vid2Locations[vid]
if len(locations) == 0 {
- return "", fmt.Errorf("volume %d not found", id)
+ return "", fmt.Errorf("volume %d not found", vid)
}
return locations[vc.r.Intn(len(locations))].Url, nil