mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
Fix Readiness check (#8681)
- Remove goroutine-check in Readiness check - Bring in quorum check for readiness Fixes #8385 Co-authored-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
committed by
Nitish Tiwari
parent
b2044dd22f
commit
5d09233115
@@ -1359,3 +1359,16 @@ func (z *xlZones) GetMetrics(ctx context.Context) (*Metrics, error) {
|
||||
logger.LogIf(ctx, NotImplemented{})
|
||||
return &Metrics{}, NotImplemented{}
|
||||
}
|
||||
|
||||
// IsReady - Returns True if all the zones have enough quorum to accept requests.
|
||||
func (z *xlZones) IsReady(ctx context.Context) bool {
|
||||
if z.SingleZone() {
|
||||
return z.zones[0].IsReady(ctx)
|
||||
}
|
||||
for _, xlsets := range z.zones {
|
||||
if !xlsets.IsReady(ctx) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user