initialize IAM store before Init() to avoid any crash (#11236)

This commit is contained in:
Harshavardhana
2021-01-06 13:40:20 -08:00
committed by GitHub
parent 6f781c5e7a
commit a6dee21092
2 changed files with 3 additions and 3 deletions

View File

@@ -356,9 +356,6 @@ func initAllSubsystems(ctx context.Context, newObject ObjectLayer) (err error) {
logger.LogIf(ctx, fmt.Errorf("Unable to initialize config, some features may be missing %w", err))
}
// Initialize IAM store
globalIAMSys.InitStore(newObject)
// Populate existing buckets to the etcd backend
if globalDNSConfig != nil {
// Background this operation.