do not block iam.store registration (#18999)

current implementation would quite simply
block the sys.store registration, making
sys.Initialized() call to be blocked.
This commit is contained in:
Harshavardhana
2024-02-07 12:41:58 -08:00
committed by GitHub
parent eead4db1d2
commit 5b1a74b6b2
4 changed files with 1 additions and 17 deletions

View File

@@ -270,16 +270,13 @@ func (sys *IAMSys) Init(ctx context.Context, objAPI ObjectLayer, etcdClient *etc
setGlobalAuthZPlugin(polplugin.New(authZPluginCfg))
sys.Lock()
defer sys.Unlock()
sys.LDAPConfig = ldapConfig
sys.OpenIDConfig = openidConfig
sys.STSTLSConfig = stsTLSConfig
sys.iamRefreshInterval = iamRefreshInterval
// Initialize IAM store
sys.initStore(objAPI, etcdClient)
sys.Unlock()
retryCtx, cancel := context.WithCancel(ctx)