未验证 提交 b657e583 编写于 作者: B bigsheeper 提交者: GitHub

Remove temporary variable to prevent memory fragmentation (#17728)

Signed-off-by: Nbigsheeper <yihao.dai@zilliz.com>
上级 899a9bf8
......@@ -32,9 +32,7 @@ SegmentInternalInterface::FillPrimaryKeys(const query::Plan* plan, SearchResult&
auto field_data = bulk_subscript(pk_field_id, results.seg_offsets_.data(), size);
results.pk_type_ = DataType(field_data->type());
std::vector<PkType> pks(size);
ParsePksFromFieldData(pks, *field_data.get());
results.primary_keys_ = std::move(pks);
ParsePksFromFieldData(results.primary_keys_, *field_data.get());
}
void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册