提交 7901d98d 编写于 作者: Z zhenshan.cao 提交者: yefu.chen

Fix bug: return wrong IndexID 0

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 c74221e4
......@@ -315,6 +315,9 @@ func (loader *indexLoader) getIndexInfo(collectionID UniqueID, segmentID UniqueI
if err != nil {
return 0, 0, err
}
if response.Status.ErrorCode != commonpb.ErrorCode_SUCCESS {
return -1, -1, errors.New(response.Status.Reason)
}
return response.IndexID, response.BuildID, nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册