replication: set checksum type correctly (#20985)

Fixes: #20978
This commit is contained in:
Poorna 2025-02-26 15:17:28 -08:00 committed by GitHub
parent 953a3e2bbd
commit 6cd8a372cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}
}