mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
Update Cluster.cpp
This commit is contained in:
parent
5cf9beabe3
commit
5ee36769db
@ -400,12 +400,12 @@ std::unique_ptr<Cluster> Cluster::getClusterWithSingleShard(size_t index) const
|
|||||||
return std::unique_ptr<Cluster>{ new Cluster(*this, {index}) };
|
return std::unique_ptr<Cluster>{ new Cluster(*this, {index}) };
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<Cluster> Cluster::getClusterWithMultipleShards(std::vector<size_t> indices) const
|
std::unique_ptr<Cluster> Cluster::getClusterWithMultipleShards(const std::vector<size_t> & indices) const
|
||||||
{
|
{
|
||||||
return std::unique_ptr<Cluster>{ new Cluster(*this, indices) };
|
return std::unique_ptr<Cluster>{ new Cluster(*this, indices) };
|
||||||
}
|
}
|
||||||
|
|
||||||
Cluster::Cluster(const Cluster & from, std::vector<size_t> indices)
|
Cluster::Cluster(const Cluster & from, const std::vector<size_t> & indices)
|
||||||
: shards_info{}
|
: shards_info{}
|
||||||
{
|
{
|
||||||
for (size_t index : indices)
|
for (size_t index : indices)
|
||||||
|
Loading…
Reference in New Issue
Block a user