mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
relax pre-emptive GetBucketInfo() for multi-object delete (#19035)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user