From d3099e0c89b852424ffb8b03742c941663c1c308 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 16 Jul 2021 13:56:13 +0300 Subject: [PATCH] Fix build and add comment. --- src/Interpreters/ClusterProxy/IStreamFactory.h | 4 ++-- src/Processors/QueryPlan/ReadFromRemote.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Interpreters/ClusterProxy/IStreamFactory.h b/src/Interpreters/ClusterProxy/IStreamFactory.h index d3ad2688c15..d85e97e5a2e 100644 --- a/src/Interpreters/ClusterProxy/IStreamFactory.h +++ b/src/Interpreters/ClusterProxy/IStreamFactory.h @@ -36,12 +36,12 @@ public: ASTPtr query; Block header; - size_t shard_num; + size_t shard_num = 0; ConnectionPoolWithFailoverPtr pool; /// If we connect to replicas lazily. /// (When there is a local replica with big delay). - bool lazy; + bool lazy = false; UInt32 local_delay = 0; }; diff --git a/src/Processors/QueryPlan/ReadFromRemote.h b/src/Processors/QueryPlan/ReadFromRemote.h index 2045bcc84f7..61099299c36 100644 --- a/src/Processors/QueryPlan/ReadFromRemote.h +++ b/src/Processors/QueryPlan/ReadFromRemote.h @@ -14,6 +14,8 @@ using ConnectionPoolWithFailoverPtr = std::shared_ptr; +/// Reading step from remote servers. +/// Unite query results from several shards. class ReadFromRemote final : public ISourceStep { public: