dbms: Server: queries with several replicas: development [#METR-14410]

This commit is contained in:
Alexey Arno 2015-01-23 01:18:47 +03:00
parent ee6c97a19b
commit 1455194519

View File

@ -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.");
}
}