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;
|
||||
List *newConnectionList = NIL;
|
||||
ListCell *connectionCell = NULL;
|
||||
|
||||
if (shardConnectionHash == NULL)
|
||||
{
|
||||
|
@ -121,12 +120,7 @@ OpenTransactionsToAllShardPlacements(List *shardIntervalList, char *userName)
|
|||
}
|
||||
|
||||
/* finish connection establishment newly opened connections */
|
||||
foreach(connectionCell, newConnectionList)
|
||||
{
|
||||
MultiConnection *connection = (MultiConnection *) lfirst(connectionCell);
|
||||
|
||||
FinishConnectionEstablishment(connection);
|
||||
}
|
||||
FinishConnectionListEstablishment(newConnectionList);
|
||||
|
||||
/* the special BARE mode (for e.g. VACUUM/ANALYZE) skips BEGIN */
|
||||
if (MultiShardCommitProtocol > COMMIT_PROTOCOL_BARE)
|
||||
|
|
Loading…
Reference in New Issue