Merge pull request #4055 from citusdata/improve_find_available_connection

Make FindAvailableConnection() more strict
pull/4058/head
Önder Kalacı 2020-07-23 16:09:41 +02:00 committed by GitHub
commit 770610ab11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}