mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
Fixed error
This commit is contained in:
parent
651070d324
commit
fea40a5b9b
@ -41,8 +41,8 @@ MultiplexedConnections::MultiplexedConnections(
|
||||
connection->setThrottler(throttler);
|
||||
|
||||
ReplicaState replica_state;
|
||||
replica_state.pool_entry = std::move(connection);
|
||||
replica_state.connection = &*connection;
|
||||
replica_state.pool_entry = std::move(connection);
|
||||
|
||||
replica_states.push_back(std::move(replica_state));
|
||||
}
|
||||
@ -224,7 +224,7 @@ std::string MultiplexedConnections::dumpAddressesUnlocked() const
|
||||
for (const ReplicaState & state : replica_states)
|
||||
{
|
||||
const Connection * connection = state.connection;
|
||||
if (connection != nullptr)
|
||||
if (connection)
|
||||
{
|
||||
os << (is_first ? "" : "; ") << connection->getDescription();
|
||||
is_first = false;
|
||||
|
Loading…
Reference in New Issue
Block a user