提交 30c800bb 编写于 作者: A Alexey Milovidov

dbms: fixed error [#METR-16053].

上级 31faf89c
......@@ -28,8 +28,10 @@ using Poco::SharedPtr;
class UnionBlockInputStream : public IProfilingBlockInputStream
{
public:
UnionBlockInputStream(BlockInputStreams inputs, unsigned max_threads)
: output_queue(max_threads), handler(*this), processor(inputs, max_threads, handler)
UnionBlockInputStream(BlockInputStreams inputs, size_t max_threads) :
output_queue(std::min(inputs.size(), max_threads)),
handler(*this),
processor(inputs, max_threads, handler)
{
children = inputs;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册