mirror of https://github.com/citusdata/citus.git
Should finish the connection first, then Decrement
parent
3e6180367b
commit
2a58d89b90
|
@ -976,10 +976,10 @@ CitusPQFinish(MultiConnection *connection)
|
||||||
{
|
{
|
||||||
if (connection->pgConn != NULL)
|
if (connection->pgConn != NULL)
|
||||||
{
|
{
|
||||||
DecrementSharedConnectionCounter(connection->hostname, connection->port);
|
|
||||||
|
|
||||||
PQfinish(connection->pgConn);
|
PQfinish(connection->pgConn);
|
||||||
connection->pgConn = NULL;
|
connection->pgConn = NULL;
|
||||||
|
|
||||||
|
DecrementSharedConnectionCounter(connection->hostname, connection->port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue