Skip to content

Commit

Permalink
object/put: Calculate homomorphic payload checksum when required
Browse files Browse the repository at this point in the history
Previously, storage nodes didn't calculate and set homomorphic payload
checksum for the sliced objects even when it was required. This could
affect Data Audit subsystem working with homomorphic hashes.

Bypass hashing option from `slicingTarget` to the underlying `Slicer`.

Fixes #2488.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Aug 10, 2023
1 parent 7178f6f commit bacb627
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/services/object/put/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func (x *slicingTarget) WriteHeader(hdr *object.Object) error {
if x.sessionToken != nil {
opts.SetSession(*x.sessionToken)
}
// if !x.homoHashDisabled {
// opts.CalculateHomomorphicChecksum()
// }

var err error
x.payloadWriter, err = slicer.InitPut(x.ctx, &readyObjectWriter{
Expand Down

0 comments on commit bacb627

Please sign in to comment.