Add part count to checksum (#17035)

This commit is contained in:
Klaus Post authored and GitHub committed 2023-04-14 09:44:45 -07:00
1 parent a9269cee29
commit c133979b8e
3 files changed
+25 -4

No files matched your search

+1 -1
View File
@@ -1081,7 +1081,7 @@ func (er erasureObjects) putObject(ctx context.Context, bucket string, object st
}
fi.DataDir = mustGetUUID()
fi.Checksum = opts.WantChecksum.AppendTo(nil)
fi.Checksum = opts.WantChecksum.AppendTo(nil, 0)
if opts.EncryptFn != nil {
fi.Checksum = opts.EncryptFn("object-checksum", fi.Checksum)
}