mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
fix: [2.4] metaCache cleanup issue when listPolicy failed (#34697)
- issue:#34667 - pr: #34449 Signed-off-by: SimFG <bang.fu@zilliz.com>
This commit is contained in:
parent
66b5cbe27c
commit
d607a43ea6
@ -1108,6 +1108,12 @@ func (m *MetaCache) RefreshPolicyInfo(op typeutil.CacheOp) (err error) {
|
||||
log.Error("fail to init meta cache", zap.Error(err))
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user