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 a bit
Chris Lu8a7327660280
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.goindex 14e0f7cd4f..f6f3d0dcca 100644--- a/weed/operation/upload_content.go+++ b/weed/operation/upload_content.go@@ -45,11 +45,9 @@ var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")// Upload sends a POST request to a volume server to upload the content with adjustable compression levelfunc UploadData(uploadUrl string, filename string, cipher bool, data []byte, isInputGzipped bool, mtype string, pairMap map[string]string, jwt security.EncodedJwt) (uploadResult *UploadResult, err error) {- hash := md5.New()- hash.Write(data)uploadResult, err = doUploadData(uploadUrl, filename, cipher, data, isInputGzipped, mtype, pairMap, jwt)if uploadResult != nil {- uploadResult.Md5 = fmt.Sprintf("%x", hash.Sum(nil))+ uploadResult.Md5 = util.Md5(data)}return}