Fix site replication status reporting of quota (#16626)

This commit is contained in:
Poorna 2023-02-15 18:38:35 -08:00 committed by GitHub
parent 37134e42d4
commit eb7d3da994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3033,7 +3033,9 @@ func isBktQuotaCfgReplicated(total int, quotaCfgs []*madmin.BucketQuota) bool {
} }
numquotaCfgs++ numquotaCfgs++
} }
if numquotaCfgs == 0 {
return true
}
if numquotaCfgs > 0 && numquotaCfgs != total { if numquotaCfgs > 0 && numquotaCfgs != total {
return false return false
} }