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 entry full url lookup
chrislu3ce46c35660f
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.goindex a6f7e49a41..03ef593ed6 100644--- a/weed/wdclient/masterclient.go+++ b/weed/wdclient/masterclient.go@@ -44,6 +44,9 @@ func (mc *MasterClient) GetLookupFileIdFunction() LookupFileIdFunctionType {func (mc *MasterClient) LookupFileIdWithFallback(fileId string) (fullUrls []string, err error) {fullUrls, err = mc.vidMap.LookupFileId(fileId)+ if err == nil {+ return+ }err = pb.WithMasterClient(false, mc.currentMaster, mc.grpcDialOption, func(client master_pb.SeaweedClient) error {resp, err := client.LookupVolume(context.Background(), &master_pb.LookupVolumeRequest{VolumeOrFileIds: []string{fileId},@@ -59,7 +62,7 @@ func (mc *MasterClient) LookupFileIdWithFallback(fileId string) (fullUrls []striGrpcPort: int(vidLoc.GrpcPort),}mc.vidMap.addLocation(uint32(vid), loc)- fullUrls = append(fullUrls, loc.Url)+ fullUrls = append(fullUrls, "http://"+loc.Url+"/"+fileId)}}