mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: fix metaCache cleanup issue when listPolicy failed (#34449)
issue: #34667 --------- Signed-off-by: balloon1995 <hszoe1995@outlook.com> Co-authored-by: congqixia <congqi.xia@zilliz.com>
This commit is contained in:
parent
b5225df21c
commit
7306d2d115
@ -1119,6 +1119,13 @@ func (m *MetaCache) RefreshPolicyInfo(op typeutil.CacheOp) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
if !merr.Ok(resp.GetStatus()) {
|
||||
log.Error("fail to init meta cache",
|
||||
zap.String("error_code", resp.GetStatus().GetErrorCode().String()),
|
||||
zap.String("reason", resp.GetStatus().GetReason()))
|
||||
return merr.Error(resp.Status)
|
||||
}
|
||||
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
m.userToRoles = make(map[string]map[string]struct{})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user