mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Return 503 instead of 404 if more than half of disks are not found (#6207)
Fixes #6163
This commit is contained in:
committed by
Harshavardhana
parent
df88421087
commit
264cc4020f
@@ -390,3 +390,9 @@ func isErrObjectNotFound(err error) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// isInsufficientReadQuorum - Check if error type is InsufficientReadQuorum.
|
||||
func isInsufficientReadQuorum(err error) bool {
|
||||
_, ok := err.(InsufficientReadQuorum)
|
||||
return ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user