Should finish the connection first, then Decrement

preventConflictingFlags
Onder Kalaci 2020-04-08 15:25:22 +02:00
parent 3e6180367b
commit 2a58d89b90
1 changed files with 2 additions and 2 deletions

View File

@ -976,10 +976,10 @@ CitusPQFinish(MultiConnection *connection)
{
if (connection->pgConn != NULL)
{
DecrementSharedConnectionCounter(connection->hostname, connection->port);
PQfinish(connection->pgConn);
connection->pgConn = NULL;
DecrementSharedConnectionCounter(connection->hostname, connection->port);
}
}