Removed dynamic_cast from PipelineExecutor.

This commit is contained in:
Nikolai Kochetov 2019-09-11 20:06:06 +03:00
parent 9916be2800
commit 95abc1f910
2 changed files with 4 additions and 4 deletions

View File

@ -584,7 +584,7 @@ void PipelineExecutor::executeSingleThread(size_t thread_num, size_t num_threads
queue.pop();
auto stream = task->processor->getStream();
if (stream != IProcessor::NO_STREAM && dynamic_cast<const ISource *>(task->processor))
if (stream != IProcessor::NO_STREAM)
{
bool found_in_queue = false;
auto thread_to_wake = stream % num_threads;

View File

@ -116,7 +116,7 @@ void QueryPipeline::addSimpleTransformImpl(const TProcessorGetter & getter)
Block header;
auto add_transform = [&](OutputPort *& stream, StreamType stream_type, size_t stream_num = IProcessor::NO_STREAM)
auto add_transform = [&](OutputPort *& stream, StreamType stream_type, size_t stream_num [[maybe_unused]] = IProcessor::NO_STREAM)
{
if (!stream)
return;
@ -149,8 +149,8 @@ void QueryPipeline::addSimpleTransformImpl(const TProcessorGetter & getter)
if (transform)
{
if (stream_type == StreamType::Main)
transform->setStream(stream_num);
// if (stream_type == StreamType::Main)
// transform->setStream(stream_num);
connect(*stream, transform->getInputs().front());
stream = &transform->getOutputs().front();