Try to fix race in PipelineExecutor.

This commit is contained in:
Nikolai Kochetov 2019-09-09 20:12:26 +03:00
parent da798142a5
commit 423a5c35e8

View File

@ -10,8 +10,6 @@
#include <boost/lockfree/stack.hpp>
#include <map>
namespace DB
{
@ -124,7 +122,7 @@ private:
/// Queue with pointers to tasks. Each thread will concurrently read from it until finished flag is set.
/// Stores processors need to be prepared. Preparing status is already set for them.
TaskQueue task_queue;
std::map<size_t> threads_queue;
std::set<size_t> threads_queue;
std::mutex task_queue_mutex;
std::atomic_bool cancelled;