mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
fix: Clean privilege cache after loading policy in InitPolicyInfo (#43642)
- issue: #43641 Signed-off-by: SimFG <bang.fu@zilliz.com>
This commit is contained in:
parent
1fae8f5ae3
commit
9ffcc55b55
@ -1133,6 +1133,7 @@ func (m *MetaCache) InitPolicyInfo(info []string, userRoles []string) {
|
||||
if err != nil {
|
||||
log.Error("failed to load policy after RefreshPolicyInfo", zap.Error(err))
|
||||
}
|
||||
CleanPrivilegeCache()
|
||||
}()
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user