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
clean up
Chris Lu3934c6975775
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.goindex a83317975e..52f8f9e2b7 100644--- a/weed/operation/upload_content.go+++ b/weed/operation/upload_content.go@@ -158,8 +158,6 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader,}}- println("data size", clearDataLen)-if cipher {// encrypt(gzip(data))@@ -170,12 +168,10 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader,err = fmt.Errorf("encrypt input: %v", encryptionErr)return}- println("encrypted data size", len(encryptedData))// upload datauploadResult, err = upload_content(uploadUrl, func(w io.Writer) (err error) {- n, err := w.Write(encryptedData)- println("writtern data size", n)+ _, err = w.Write(encryptedData)return}, "", false, "", nil, jwt)if uploadResult != nil {@@ -187,8 +183,7 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader,} else {// upload datauploadResult, err = upload_content(uploadUrl, func(w io.Writer) (err error) {- n, err := w.Write(data)- println("written data size", n)+ _, err = w.Write(data)return}, filename, contentIsGzipped, mtype, pairMap, jwt)}