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

@@ -444,6 +444,9 @@ func (sys *IAMSys) Initialized() bool {
// Init - initializes config system by reading entries from config/iam
func (sys *IAMSys) Init(ctx context.Context, objAPI ObjectLayer) {
// Initialize IAM store
sys.InitStore(objAPI)
retryCtx, cancel := context.WithCancel(ctx)
// Indicate to our routine to exit cleanly upon return.