Update Cluster.cpp

This commit is contained in:
alexey-milovidov 2018-11-21 07:04:05 +03:00 committed by GitHub
parent 5cf9beabe3
commit 5ee36769db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)