diff --git a/dbms/include/DB/DataStreams/AsynchronousBlockInputStream.h b/dbms/include/DB/DataStreams/AsynchronousBlockInputStream.h index 0777561c05a..14b3364a627 100644 --- a/dbms/include/DB/DataStreams/AsynchronousBlockInputStream.h +++ b/dbms/include/DB/DataStreams/AsynchronousBlockInputStream.h @@ -89,6 +89,7 @@ protected: void next() { + ready.reset(); pool.schedule(boost::bind(&AsynchronousBlockInputStream::calculate, this)); } @@ -96,8 +97,6 @@ protected: /// Вычисления, которые могут выполняться в отдельном потоке void calculate() { - ready.reset(); - try { block = in->read();