mirror of https://github.com/citusdata/citus.git
Merge pull request #4055 from citusdata/improve_find_available_connection
Make FindAvailableConnection() more strictpull/4058/head
commit
770610ab11
|
@ -450,6 +450,15 @@ FindAvailableConnection(dlist_head *connections, uint32 flags)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (connection->initilizationState != POOL_STATE_INITIALIZED)
|
||||
{
|
||||
/*
|
||||
* If the connection has not been initialized, it should not be
|
||||
* considered as available.
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue