mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
Fix traverse.
This commit is contained in:
parent
904647f02e
commit
f39ad1f79a
@ -18,7 +18,7 @@ void traverse(IProcessor & processor, Visit && visit)
|
|||||||
|
|
||||||
if (status == IProcessor::Status::NeedData)
|
if (status == IProcessor::Status::NeedData)
|
||||||
for (auto & input : processor.getInputs())
|
for (auto & input : processor.getInputs())
|
||||||
if (input.isNeeded())
|
if (input.isNeeded() && !input.hasData())
|
||||||
traverse(input.getOutputPort().getProcessor(), std::forward<Visit>(visit));
|
traverse(input.getOutputPort().getProcessor(), std::forward<Visit>(visit));
|
||||||
|
|
||||||
if (status == IProcessor::Status::PortFull)
|
if (status == IProcessor::Status::PortFull)
|
||||||
|
Loading…
Reference in New Issue
Block a user