Fixed error [#METR-21408].

This commit is contained in:
Alexey Milovidov 2016-05-24 21:22:15 +03:00
parent 4375300027
commit a5397d0382
2 changed files with 5 additions and 7 deletions

View File

@ -39,9 +39,11 @@ public:
void readPrefix() override
{
/// Не будем вызывать readPrefix у ребёнка, чтобы соответствующие действия совершались в отдельном потоке.
next();
started = true;
if (!started)
{
next();
started = true;
}
}
void readSuffix() override

View File

@ -22,10 +22,6 @@ void MergingSortedBlockInputStream::init(Block & merged_block, ColumnPlainPtrs &
{
first = false;
/// Например, если дети - AsynchronousBlockInputStream, это действие инициирует начало работы в фоновых потоках.
for (auto & child : children)
child->readPrefix();
size_t i = 0;
for (auto it = source_blocks.begin(); it != source_blocks.end(); ++it, ++i)
{