mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Validate tier manager is initialized in tier Empty() check (#14646)
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user