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
This commit is contained in:
Anis Eleuch 2024-02-05 19:48:03 +01:00 committed by GitHub
parent fec13b0ec1
commit ba975ca320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}