From ba975ca3204e60a3659ef66d7de5e1c15e6b1dc6 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Mon, 5 Feb 2024 19:48:03 +0100 Subject: [PATCH] Add defensive code to ignore checking parts with transitioned objects (#18973) Though dataErrs are nil with transitioned objects, add a more defensive code to ignore counting missing parts in that case --- 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 79c6f9d97..c07891b55 100644 --- a/cmd/erasure-healing.go +++ b/cmd/erasure-healing.go @@ -978,7 +978,7 @@ func isObjectDangling(metaArr []FileInfo, errs []error, dataErrs []error) (valid return validMeta, true } - if notFoundPartsErrs > 0 && notFoundPartsErrs >= quorum { + if !validMeta.IsRemote() && notFoundPartsErrs > 0 && notFoundPartsErrs >= quorum { // All data-dir is beyond data blocks missing, this is dangling return validMeta, true }