mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
Fix style, build
This commit is contained in:
parent
3903d59d30
commit
7847b78af9
@ -45,7 +45,7 @@ private:
|
||||
|
||||
ConnectionPtr connection;
|
||||
std::string connection_str, address;
|
||||
std::atomic<uint8_t> ref_count;
|
||||
std::atomic<uint8_t> ref_count{0};
|
||||
};
|
||||
|
||||
using PostgreSQLConnectionPtr = std::shared_ptr<PostgreSQLConnection>;
|
||||
|
@ -50,7 +50,6 @@ void PostgreSQLConnectionPool::initialize()
|
||||
}
|
||||
|
||||
|
||||
|
||||
WrappedPostgreSQLConnection PostgreSQLConnectionPool::get()
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
|
@ -52,13 +52,6 @@ PostgreSQLReplicaConnection::PostgreSQLReplicaConnection(
|
||||
}
|
||||
|
||||
|
||||
PostgreSQLReplicaConnection::PostgreSQLReplicaConnection(const PostgreSQLReplicaConnection & other)
|
||||
: replicas(other.replicas)
|
||||
, num_retries(other.num_retries)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
WrappedPostgreSQLConnection PostgreSQLReplicaConnection::get()
|
||||
{
|
||||
for (size_t i = 0; i < num_retries; ++i)
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
const String & config_prefix,
|
||||
const size_t num_retries_ = POSTGRESQL_CONNECTION_DEFAULT_RETRIES_NUM);
|
||||
|
||||
PostgreSQLReplicaConnection(const PostgreSQLReplicaConnection & other);
|
||||
PostgreSQLReplicaConnection(const PostgreSQLReplicaConnection & other) = default;
|
||||
|
||||
WrappedPostgreSQLConnection get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user