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
[s3] Fixed s3 replication by sending content-md as base64 (#5596)
Martin Stiborský54f3913bedf3
diff --git a/weed/replication/sink/s3sink/s3_sink.go b/weed/replication/sink/s3sink/s3_sink.goindex 81acd9a2d6..6e7549cdc6 100644--- a/weed/replication/sink/s3sink/s3_sink.go+++ b/weed/replication/sink/s3sink/s3_sink.go@@ -11,6 +11,7 @@ import ("github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants""strconv""strings"+ "encoding/base64""github.com/seaweedfs/seaweedfs/weed/filer""github.com/seaweedfs/seaweedfs/weed/glog"@@ -202,7 +203,7 @@ func (s3sink *S3Sink) CreateEntry(key string, entry *filer_pb.Entry, signaturesTagging: aws.String(tags),}if len(entry.Attributes.Md5) > 0 {- uploadInput.ContentMD5 = aws.String(fmt.Sprintf("%x", entry.Attributes.Md5))+ uploadInput.ContentMD5 = aws.String(base64.StdEncoding.EncodeToString([]byte(entry.Attributes.Md5)))}_, err = uploader.Upload(&uploadInput)