mirror of https://github.com/citusdata/citus.git
Use FinishConnectionListEstablishment() instead of manually iterating.
parent
d256f3fca9
commit
6291998ae1
|
@ -44,7 +44,6 @@ OpenTransactionsToAllShardPlacements(List *shardIntervalList, char *userName)
|
||||||
{
|
{
|
||||||
ListCell *shardIntervalCell = NULL;
|
ListCell *shardIntervalCell = NULL;
|
||||||
List *newConnectionList = NIL;
|
List *newConnectionList = NIL;
|
||||||
ListCell *connectionCell = NULL;
|
|
||||||
|
|
||||||
if (shardConnectionHash == NULL)
|
if (shardConnectionHash == NULL)
|
||||||
{
|
{
|
||||||
|
@ -121,12 +120,7 @@ OpenTransactionsToAllShardPlacements(List *shardIntervalList, char *userName)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* finish connection establishment newly opened connections */
|
/* finish connection establishment newly opened connections */
|
||||||
foreach(connectionCell, newConnectionList)
|
FinishConnectionListEstablishment(newConnectionList);
|
||||||
{
|
|
||||||
MultiConnection *connection = (MultiConnection *) lfirst(connectionCell);
|
|
||||||
|
|
||||||
FinishConnectionEstablishment(connection);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* the special BARE mode (for e.g. VACUUM/ANALYZE) skips BEGIN */
|
/* the special BARE mode (for e.g. VACUUM/ANALYZE) skips BEGIN */
|
||||||
if (MultiShardCommitProtocol > COMMIT_PROTOCOL_BARE)
|
if (MultiShardCommitProtocol > COMMIT_PROTOCOL_BARE)
|
||||||
|
|
Loading…
Reference in New Issue