Validate tier manager is initialized in tier Empty() check (#14646)

Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
This commit is contained in:
Poorna
2022-03-29 10:10:06 -07:00
committed by GitHub
parent e955aa7f2a
commit 9e25475475
2 changed files with 6 additions and 3 deletions

View File

@@ -148,6 +148,9 @@ func (config *TierConfigMgr) Verify(ctx context.Context, tier string) error {
// Empty returns if tier targets are empty
func (config *TierConfigMgr) Empty() bool {
if config == nil {
return true
}
return len(config.ListTiers()) == 0
}