mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 16:35:29 +08:00
fix: data race when accessing field_ when retrieving (#39151)
issue: #39148 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
cc5d59392a
commit
5f94954bb4
@ -1591,7 +1591,11 @@ SegmentSealedImpl::bulk_subscript(
|
||||
return fill_with_empty(field_id, 0);
|
||||
}
|
||||
|
||||
auto column = fields_.at(field_id);
|
||||
std::shared_ptr<SingleChunkColumnBase> column;
|
||||
{
|
||||
std::shared_lock lck(mutex_);
|
||||
column = fields_.at(field_id);
|
||||
}
|
||||
auto ret = fill_with_empty(field_id, count);
|
||||
if (column->IsNullable()) {
|
||||
auto dst = ret->mutable_valid_data()->mutable_data();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user