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.

print for debugging

Chris Lu19772d70d7c5
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index dc92125a87..a4148cb221 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -230,12 +230,14 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) error
if jwt != "" {
req.Header.Set("Authorization", "BEARER "+string(jwt))
}
+ // print("+")
resp, post_err := HttpClient.Do(req)
if post_err != nil {
glog.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
debug.PrintStack()
return nil, fmt.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
}
+ // print("-")
defer util.CloseResponse(resp)
var ret UploadResult