mirror of https://github.com/citusdata/citus.git
Remove unnecessary hash search
parent
69ce21a42f
commit
eea877ce4e
|
@ -380,14 +380,15 @@ CitusCopyFrom(CopyStmt *copyStatement, char *completionTag)
|
||||||
shardConnections = (ShardConnections *) hash_seq_search(&status);
|
shardConnections = (ShardConnections *) hash_seq_search(&status);
|
||||||
while (shardConnections != NULL)
|
while (shardConnections != NULL)
|
||||||
{
|
{
|
||||||
|
List *shardConnectionsList = list_copy(shardConnections->connectionList);
|
||||||
|
connectionList = list_concat(connectionList, shardConnectionsList);
|
||||||
|
|
||||||
BuildCopyBinaryFooters(copyOutState);
|
BuildCopyBinaryFooters(copyOutState);
|
||||||
SendCopyDataToPlacements(copyOutState->fe_msgbuf, shardConnections);
|
SendCopyDataToPlacements(copyOutState->fe_msgbuf, shardConnections);
|
||||||
|
|
||||||
shardConnections = (ShardConnections *) hash_seq_search(&status);
|
shardConnections = (ShardConnections *) hash_seq_search(&status);
|
||||||
}
|
}
|
||||||
|
|
||||||
connectionList = ConnectionList(shardConnectionHash);
|
|
||||||
|
|
||||||
EndRemoteCopy(connectionList, true);
|
EndRemoteCopy(connectionList, true);
|
||||||
|
|
||||||
if (CopyTransactionManager == TRANSACTION_MANAGER_2PC)
|
if (CopyTransactionManager == TRANSACTION_MANAGER_2PC)
|
||||||
|
|
Loading…
Reference in New Issue