feat: cache env value in-case network is not reachable (#10251)

This commit is contained in:
Harshavardhana
2020-08-12 16:53:15 -07:00
committed by GitHub
parent 79ed7ce451
commit 34253aa595
3 changed files with 131 additions and 38 deletions

View File

@@ -2088,6 +2088,14 @@ func (z *erasureZones) Health(ctx context.Context, opts HealthOptions) HealthRes
}
}
// when maintenance is not specified we don't have
// to look at the healing side of the code.
if !opts.Maintenance {
return HealthResult{
Healthy: true,
}
}
// check if local disks are being healed, if they are being healed
// we need to tell healthy status as 'false' so that this server
// is not taken down for maintenance