mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Properly watch for users, policies, temp users (#7701)
Users were not reloaded properly when etcd was configured in gateway, server modes. This PR fixes this issue.
This commit is contained in:
committed by
Nitish Tiwari
parent
f6fd407e47
commit
7e4c9a9e1e
@@ -79,7 +79,8 @@ func (sys *IAMSys) Init(objAPI ObjectLayer) error {
|
||||
go func() {
|
||||
// Refresh IAMSys with etcd watch.
|
||||
for {
|
||||
watchCh := globalEtcdClient.Watch(context.Background(), iamConfigPrefix)
|
||||
watchCh := globalEtcdClient.Watch(context.Background(),
|
||||
iamConfigPrefix, etcd.WithPrefix())
|
||||
select {
|
||||
case <-GlobalServiceDoneCh:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user