diff --git a/dbms/src/Interpreters/Cluster.cpp b/dbms/src/Interpreters/Cluster.cpp index e76ec26f385..9b090a2a9e6 100644 --- a/dbms/src/Interpreters/Cluster.cpp +++ b/dbms/src/Interpreters/Cluster.cpp @@ -400,12 +400,12 @@ std::unique_ptr Cluster::getClusterWithSingleShard(size_t index) const return std::unique_ptr{ new Cluster(*this, {index}) }; } -std::unique_ptr Cluster::getClusterWithMultipleShards(std::vector indices) const +std::unique_ptr Cluster::getClusterWithMultipleShards(const std::vector & indices) const { return std::unique_ptr{ new Cluster(*this, indices) }; } -Cluster::Cluster(const Cluster & from, std::vector indices) +Cluster::Cluster(const Cluster & from, const std::vector & indices) : shards_info{} { for (size_t index : indices)