remove dataErrs from er.deleteIfDangling code

avoid this until a comprehensive change is
merged such as https://github.com/minio/minio/pull/19797
This commit is contained in:
Harshavardhana 2024-05-24 18:20:01 -07:00
parent 5f78691fcf
commit 7d75b1e758
1 changed files with 1 additions and 1 deletions

View File

@ -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, dataErrs, ObjectOptions{
m, err := er.deleteIfDangling(ctx, bucket, object, partsMetadata, errs, nil, ObjectOptions{
VersionID: versionID,
})
errs = make([]error, len(errs))