From 6cd8a372cb8786598bf4652d2a544a41be4dd86c Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 26 Feb 2025 15:17:28 -0800 Subject: [PATCH] replication: set checksum type correctly (#20985) Fixes: #20978 --- cmd/bucket-replication.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/bucket-replication.go b/cmd/bucket-replication.go index fdbc1be1d..8c33ec305 100644 --- a/cmd/bucket-replication.go +++ b/cmd/bucket-replication.go @@ -3803,9 +3803,7 @@ func getCRCMeta(oi ObjectInfo, partNum int, h http.Header) (cs map[string]string } if cksum.Valid() { meta[cksum.Type.Key()] = v - } - if isMP && partNum == 0 { - meta[xhttp.AmzChecksumType] = cksum.Type.ObjType() + meta[xhttp.AmzChecksumType] = cs[xhttp.AmzChecksumType] meta[xhttp.AmzChecksumAlgo] = cksum.Type.String() } }