mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
fix: IAM initialization crash with etcd store (#13612)
This commit is contained in:
committed by
GitHub
parent
acf26c5ab7
commit
8dfd1f03e9
@@ -70,7 +70,11 @@ type IAMEtcdStore struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newIAMEtcdStore(client *etcd.Client, usersSysType UsersSysType) *IAMEtcdStore {
|
func newIAMEtcdStore(client *etcd.Client, usersSysType UsersSysType) *IAMEtcdStore {
|
||||||
return &IAMEtcdStore{client: client, usersSysType: usersSysType}
|
return &IAMEtcdStore{
|
||||||
|
iamCache: newIamCache(),
|
||||||
|
client: client,
|
||||||
|
usersSysType: usersSysType,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ies *IAMEtcdStore) rlock() *iamCache {
|
func (ies *IAMEtcdStore) rlock() *iamCache {
|
||||||
|
|||||||
Reference in New Issue
Block a user