mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 18:02:08 +08:00
Remove temporary variable to prevent memory fragmentation (#17728)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
899a9bf86d
commit
b657e58370
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user