mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix bug
Former-commit-id: 4f365862e364a8b6232a9d959354dd609db6a040
This commit is contained in:
parent
b2d988b9c6
commit
99b61e3b9b
@ -325,7 +325,6 @@ AddBatchVectorTask::AddBatchVectorTask(const std::string& group_id,
|
||||
bin_tensor_list_(tensor_list),
|
||||
tensor_ids_(ids) {
|
||||
tensor_ids_.clear();
|
||||
tensor_ids_.resize(tensor_list->tensor_list.size());
|
||||
}
|
||||
|
||||
BaseTaskPtr AddBatchVectorTask::Create(const std::string& group_id,
|
||||
@ -469,6 +468,7 @@ ServerError AddBatchVectorTask::OnExecute() {
|
||||
SERVER_LOG_ERROR << "Vector ID not returned";
|
||||
return SERVER_UNEXPECTED_ERROR;
|
||||
} else {
|
||||
tensor_ids_.resize(vector_ids.size());
|
||||
if(vec_count < USE_MT) {
|
||||
ProcessIdMapping(vector_ids, 0, vec_count, tensor_ids_);
|
||||
rc.Record("built id mapping");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user