mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
Fix test.
This commit is contained in:
parent
171a6e35ce
commit
3c0451981b
@ -89,7 +89,11 @@ void ExecutorTasks::tryGetTask(ExecutionThreadContext & context)
|
||||
/// If we execute in single thread, wait for async tasks here.
|
||||
auto res = async_task_queue.wait(lock);
|
||||
if (!res)
|
||||
{
|
||||
if (finished)
|
||||
return;
|
||||
throw Exception("Empty task was returned from async task queue", ErrorCodes::LOGICAL_ERROR);
|
||||
}
|
||||
|
||||
context.setTask(static_cast<ExecutingGraph::Node *>(res.data));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user