Skip to content
Snippets Groups Projects
Commit 7901d98d authored by zhenshan.cao's avatar zhenshan.cao Committed by yefu.chen
Browse files

Fix bug: return wrong IndexID 0


Signed-off-by: default avatarzhenshan.cao <zhenshan.cao@zilliz.com>
parent c74221e4
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment