mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:41:17 +01:00
replication: set checksum type correctly (#20985)
Some checks are pending
VulnCheck / Analysis (push) Waiting to run
Some checks are pending
VulnCheck / Analysis (push) Waiting to run
Fixes: #20978
This commit is contained in:
parent
953a3e2bbd
commit
6cd8a372cb
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user