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:
SimFG 2025-07-30 16:57:37 +08:00 committed by GitHub
parent 1fae8f5ae3
commit 9ffcc55b55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()