relax pre-emptive GetBucketInfo() for multi-object delete (#19035)

This commit is contained in:
Harshavardhana
2024-02-12 08:46:46 -08:00
committed by GitHub
parent 4fa06aefc6
commit 6d381f7c0a
4 changed files with 29 additions and 13 deletions

View File

@@ -861,8 +861,12 @@ func isAllBucketsNotFound(errs []error) bool {
}
notFoundCount := 0
for _, err := range errs {
if err != nil && errors.Is(err, errVolumeNotFound) {
notFoundCount++
if err != nil {
if errors.Is(err, errVolumeNotFound) {
notFoundCount++
} else if isErrBucketNotFound(err) {
notFoundCount++
}
}
}
return len(errs) == notFoundCount