mirror of https://github.com/milvus-io/milvus.git
Fix bug: return wrong IndexID 0
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/4973/head^2
parent
c74221e4da
commit
7901d98d5e
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue