Fix data race in PipelineExecutor.

This commit is contained in:
Nikolai Kochetov 2019-05-13 14:23:55 +03:00
parent 18a7b0d7a2
commit 73948ab747

View File

@ -510,6 +510,9 @@ void TCPHandler::processOrdinaryQueryWithProcessors(size_t num_threads)
}
});
/// Wait in case of exception.
SCOPE_EXIT(pool.wait());
while (true)
{
Block block;