mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
dbms: Server: queries with several replicas: development [#METR-14410]
This commit is contained in:
parent
ee6c97a19b
commit
1455194519
@ -13,7 +13,9 @@ namespace DB
|
||||
Connection * connection = &*entry;
|
||||
if (connection == nullptr)
|
||||
throw Exception("Invalid connection specified in parameter.");
|
||||
replica_hash.insert(std::make_pair(connection->socket.impl()->sockfd(), connection));
|
||||
auto res = replica_hash.insert(std::make_pair(connection->socket.impl()->sockfd(), connection));
|
||||
if (!res.second)
|
||||
throw Exception("Invalid set of connections.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user