提交 408fe6e7 编写于 作者: C cai.zhang 提交者: yefu.chen

Make system return success when partitions has been already loaded

Signed-off-by: Ncai.zhang <cai.zhang@zilliz.com>
上级 af32f442
......@@ -311,6 +311,15 @@ func (qs *QueryService) LoadCollection(ctx context.Context, req *querypb.LoadCol
}
}
if len(partitionIDsToLoad) == 0 {
log.Debug("load collection end", zap.String("collectionID", fmt.Sprintln(collectionID)))
return &commonpb.Status{
Reason: "Partitions has been already loaded!",
ErrorCode: commonpb.ErrorCode_ERROR_CODE_SUCCESS,
}, nil
}
loadPartitionsRequest := &querypb.LoadPartitionRequest{
Base: req.Base,
DbID: dbID,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册