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
volume: handle repeated writes response
Chris Luf9b3750ad16e
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.goindex 0fc3c37bf7..75775d7d08 100644--- a/weed/operation/upload_content.go+++ b/weed/operation/upload_content.go@@ -188,12 +188,17 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) errorreturn nil, post_err}defer resp.Body.Close()++ var ret UploadResultetag := getEtag(resp)+ if resp.StatusCode == http.StatusNoContent {+ ret.ETag = etag+ return &ret, nil+ }resp_body, ra_err := ioutil.ReadAll(resp.Body)if ra_err != nil {return nil, ra_err}- var ret UploadResultunmarshal_err := json.Unmarshal(resp_body, &ret)if unmarshal_err != nil {glog.V(0).Infoln("failing to read upload response", uploadUrl, string(resp_body))