mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
Add part count to checksum (#17035)
This commit is contained in:
1 parent
a9269cee29
commit
c133979b8e
3 files changed
+25
-4
No files matched your search
@@ -1137,8 +1137,9 @@ func (er erasureObjects) CompleteMultipartUpload(ctx context.Context, bucket str
|
||||
}
|
||||
}
|
||||
if checksumType.IsSet() {
|
||||
checksumType |= hash.ChecksumMultipart
|
||||
cs := hash.NewChecksumFromData(checksumType, checksumCombined)
|
||||
fi.Checksum = cs.AppendTo(nil)
|
||||
fi.Checksum = cs.AppendTo(nil, len(fi.Parts))
|
||||
if opts.EncryptFn != nil {
|
||||
fi.Checksum = opts.EncryptFn("object-checksum", fi.Checksum)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user