mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #37726 from ClickHouse/fix-parallel-download-exception
Initialize `ParallelReadBuffer` after construction
This commit is contained in:
commit
46abbac352
@ -49,7 +49,15 @@ ParallelReadBuffer::ParallelReadBuffer(
|
||||
, schedule(std::move(schedule_))
|
||||
, reader_factory(std::move(reader_factory_))
|
||||
{
|
||||
addReaders();
|
||||
try
|
||||
{
|
||||
addReaders();
|
||||
}
|
||||
catch (const Exception &)
|
||||
{
|
||||
finishAndWait();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
bool ParallelReadBuffer::addReaderToPool()
|
||||
|
Loading…
Reference in New Issue
Block a user