mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Merge pull request #35984 from ClickHouse/fix-url-data-race
Fix data race in StorageURL
This commit is contained in:
commit
cda8a18fe3
@ -224,14 +224,12 @@ namespace
|
||||
}
|
||||
|
||||
Chunk chunk;
|
||||
std::lock_guard lock(reader_mutex);
|
||||
if (reader->pull(chunk))
|
||||
return chunk;
|
||||
|
||||
{
|
||||
std::lock_guard lock(reader_mutex);
|
||||
pipeline->reset();
|
||||
reader.reset();
|
||||
}
|
||||
pipeline->reset();
|
||||
reader.reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user