From 9d20dec56a998ce9bdc3b5863fd729e86905d15d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 26 May 2024 11:13:22 -0700 Subject: [PATCH] Revert "remove dataErrs from er.deleteIfDangling code" This reverts commit 7d75b1e758865911e50d8881d8408e8d6fe6c152. This fails multipart tests we need this code to handle existing challenges, so wait for the comprehensive fix. --- cmd/erasure-healing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure-healing.go b/cmd/erasure-healing.go index 8d39e34f0..54e43b199 100644 --- a/cmd/erasure-healing.go +++ b/cmd/erasure-healing.go @@ -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))