Skip to content

Commit

Permalink
fix: data race when using fields_ (milvus-io#37612)
Browse files Browse the repository at this point in the history
issue: milvus-io#37609

Signed-off-by: chyezh <chyezh@outlook.com>
  • Loading branch information
chyezh authored Nov 12, 2024
1 parent 5ab3c56 commit 3c225e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ ChunkedSegmentSealedImpl::generate_interim_index(const FieldId field_id) {
field_binlog_config->GetIndexType(),
index_metric,
knowhere::Version::GetCurrentVersion().VersionNumber());
auto num_chunk = fields_.at(field_id)->num_chunks();
auto num_chunk = vec_data->num_chunks();
for (int i = 0; i < num_chunk; ++i) {
auto dataset = knowhere::GenDataSet(
vec_data->chunk_row_nums(i), dim, vec_data->Data(i));
Expand Down

0 comments on commit 3c225e5

Please sign in to comment.