aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-11 12:51:44 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-11 12:51:44 -0800
commit8708e7a64d19d330311aee16d26ae2f4272d3c1e (patch)
treede67ba89393afdc89cb25802e3473aeb9a776018
parentc6bd244ebdb0a0f9ba856622a5b11a51f940a201 (diff)
downloadseaweedfs-8708e7a64d19d330311aee16d26ae2f4272d3c1e.tar.xz
seaweedfs-8708e7a64d19d330311aee16d26ae2f4272d3c1e.zip
print out data size
-rw-r--r--weed/operation/upload_content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index ac0b477cb..5fe99ba5b 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -169,7 +169,7 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i
uploadResult, err = upload_content(uploadUrl, func(w io.Writer) (err error) {
_, err = w.Write(data)
return
- }, filename, contentIsGzipped, 0, mtype, pairMap, jwt)
+ }, filename, contentIsGzipped, len(data), mtype, pairMap, jwt)
}
if uploadResult == nil {