mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 11:10:49 +00:00
Fix data race in PipelineExecutor.
This commit is contained in:
parent
b8adb0937f
commit
18a7b0d7a2
@ -188,7 +188,7 @@ void PipelineExecutor::addJob(UInt64 pid, ThreadPool * pool)
|
||||
{
|
||||
if (pool)
|
||||
{
|
||||
auto job = [this, pid]()
|
||||
auto job = [this, pid, processor = graph[pid].processor]()
|
||||
{
|
||||
SCOPE_EXIT(
|
||||
{
|
||||
@ -198,7 +198,7 @@ void PipelineExecutor::addJob(UInt64 pid, ThreadPool * pool)
|
||||
event_counter.notify()
|
||||
);
|
||||
|
||||
executeJob(graph[pid].processor);
|
||||
executeJob(processor);
|
||||
};
|
||||
|
||||
pool->schedule(createExceptionHandledJob(std::move(job), exception_handler));
|
||||
|
@ -82,7 +82,7 @@ void IAccumulatingTransform::setReadyChunk(Chunk chunk)
|
||||
{
|
||||
if (current_output_chunk)
|
||||
throw Exception("IAccumulatingTransform already has input. Cannot set another chunk. "
|
||||
"Probably, setReadyChunk method was called twose per consume().", ErrorCodes::LOGICAL_ERROR);
|
||||
"Probably, setReadyChunk method was called twice per consume().", ErrorCodes::LOGICAL_ERROR);
|
||||
|
||||
current_output_chunk = std::move(chunk);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user