removed copy constructor and moved to private methid

This commit is contained in:
Kiran 2020-01-07 23:49:39 +05:30
parent c87f74c637
commit 9c3e80a774

View File

@ -26,12 +26,9 @@ public:
const String & username, const String & password,
UInt16 clickhouse_port, bool treat_local_as_remote, bool secure = false);
Cluster(const Settings & settings, const Cluster &);
Cluster(const Cluster &)= delete;
Cluster & operator=(const Cluster &) = delete;
/// is used to set a limit on the size of the timeout
static Poco::Timespan saturate(const Poco::Timespan & v, const Poco::Timespan & limit);
@ -167,6 +164,9 @@ private:
/// For getClusterWithMultipleShards implementation.
Cluster(const Cluster & from, const std::vector<size_t> & indices);
/// For getClusterWithReplicasAsShards implementation
Cluster(const Settings & settings, const Cluster &);
String hash_of_addresses;
/// Description of the cluster shards.
ShardsInfo shards_info;