mirror of https://github.com/citusdata/citus.git
fix multi_cluster_management check timeout when repeat localhost in /etc/hosts
parent
6801a1ed1e
commit
89ae723759
|
@ -1046,8 +1046,15 @@ FinishConnectionListEstablishment(List *multiConnectionList)
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
bool beforePollSocket = PQsocket(connectionState->connection->pgConn);
|
||||||
bool connectionStateChanged = MultiConnectionStatePoll(connectionState);
|
bool connectionStateChanged = MultiConnectionStatePoll(connectionState);
|
||||||
|
|
||||||
|
if (beforePollSocket != PQsocket(connectionState->connection->pgConn))
|
||||||
|
{
|
||||||
|
/* rebuild the wait events if MultiConnectionStatePoll() changed the socket */
|
||||||
|
waitEventSetRebuild = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (connectionStateChanged)
|
if (connectionStateChanged)
|
||||||
{
|
{
|
||||||
if (connectionState->phase != MULTI_CONNECTION_PHASE_CONNECTING)
|
if (connectionState->phase != MULTI_CONNECTION_PHASE_CONNECTING)
|
||||||
|
|
Loading…
Reference in New Issue