mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
Fix bug: return wrong IndexID 0
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user