Skip to content

Commit

Permalink
Revert "remove dataErrs from er.deleteIfDangling code"
Browse files Browse the repository at this point in the history
This reverts commit 7d75b1e.

This fails multipart tests we need this code to handle
existing challenges, so wait for the comprehensive fix.
  • Loading branch information
harshavardhana committed May 26, 2024
1 parent 597a785 commit 9d20dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/erasure-healing.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (er *erasureObjects) healObject(ctx context.Context, bucket string, object
if !latestMeta.XLV1 && !latestMeta.Deleted && disksToHealCount > latestMeta.Erasure.ParityBlocks {
// Allow for dangling deletes, on versions that have DataDir missing etc.
// this would end up restoring the correct readable versions.
m, err := er.deleteIfDangling(ctx, bucket, object, partsMetadata, errs, nil, ObjectOptions{
m, err := er.deleteIfDangling(ctx, bucket, object, partsMetadata, errs, dataErrs, ObjectOptions{
VersionID: versionID,
})
errs = make([]error, len(errs))
Expand Down

0 comments on commit 9d20dec

Please sign in to comment.