fix: [2.5] Clean privilege cache after loading policy in InitPolicyInfo (#43643)

- issue: #43641
- pr: #43642

Signed-off-by: SimFG <bang.fu@zilliz.com>
This commit is contained in:
SimFG 2025-07-30 18:07:37 +08:00 committed by GitHub
parent 78a5fce7f4
commit 33e4bcc689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1091,6 +1091,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()