mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +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,16 +224,14 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static std::unique_ptr<ReadBuffer> getFirstAvailableURLReadBuffer(
|
||||
std::vector<String>::const_iterator & option,
|
||||
|
Loading…
Reference in New Issue
Block a user