mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Update Cluster.cpp
This commit is contained in:
parent
af8db3e9ec
commit
0bc9776e2a
@ -410,10 +410,10 @@ Cluster::Cluster(const Cluster & from, const std::vector<size_t> & indices)
|
||||
{
|
||||
for (size_t index : indices)
|
||||
{
|
||||
shards_info.push_back(from.shards_info[index]);
|
||||
shards_info.emplace_back(from.shards_info.at(index));
|
||||
|
||||
if (!from.addresses_with_failover.empty())
|
||||
addresses_with_failover.emplace_back(from.addresses_with_failover[index]);
|
||||
addresses_with_failover.emplace_back(from.addresses_with_failover.at(index));
|
||||
}
|
||||
|
||||
initMisc();
|
||||
|
Loading…
Reference in New Issue
Block a user