mirror of https://github.com/milvus-io/milvus.git
Fix miss to handle error from GetCollectionID (#26712)
Signed-off-by: lixinguo <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>pull/27507/head
parent
a3188231b3
commit
241f2d77fb
|
@ -3495,7 +3495,12 @@ func (node *Proxy) GetReplicas(ctx context.Context, req *milvuspb.GetReplicasReq
|
|||
)
|
||||
|
||||
if req.GetCollectionName() != "" {
|
||||
req.CollectionID, _ = globalMetaCache.GetCollectionID(ctx, req.GetDbName(), req.GetCollectionName())
|
||||
var err error
|
||||
req.CollectionID, err = globalMetaCache.GetCollectionID(ctx, req.GetDbName(), req.GetCollectionName())
|
||||
if err != nil {
|
||||
resp.Status = merr.Status(err)
|
||||
return resp, nil
|
||||
}
|
||||
}
|
||||
|
||||
r, err := node.queryCoord.GetReplicas(ctx, req)
|
||||
|
|
Loading…
Reference in New Issue