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
refactor
Konstantin Lebedevda9d3e8f6ce7
diff --git a/weed/filer/stream.go b/weed/filer/stream.goindex 9f2991a02b..ed30ce5b01 100644--- a/weed/filer/stream.go+++ b/weed/filer/stream.go@@ -79,11 +79,10 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, writer io.Writvar err errorfor _, backoff := range getLookupFileIdBackoffSchedule {urlStrings, err = masterClient.GetLookupFileIdFunction()(chunkView.FileId)- if err != nil || len(urlStrings) == 0 {- time.Sleep(backoff)- } else {+ if err == nil && len(urlStrings) > 0 {break}+ time.Sleep(backoff)}if err != nil {glog.V(1).Infof("operation LookupFileId %s failed, err: %v", chunkView.FileId, err)