Pass stream_cancelled to the copyData as stub in StorageKafka

This commit is contained in:
Azat Khuzhin 2020-05-03 15:49:40 +03:00
parent c69217e9f3
commit a10cfc3ae5

View File

@ -380,8 +380,7 @@ bool StorageKafka::streamToViews()
else
in = streams[0];
std::atomic<bool> stub = {false};
copyData(*in, *block_io.out, &stub);
copyData(*in, *block_io.out, &stream_cancelled);
for (auto & stream : streams)
stream->as<KafkaBlockInputStream>()->commit();