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);
|
||||
while (shardConnections != NULL)
|
||||
{
|
||||
List *shardConnectionsList = list_copy(shardConnections->connectionList);
|
||||
connectionList = list_concat(connectionList, shardConnectionsList);
|
||||
|
||||
BuildCopyBinaryFooters(copyOutState);
|
||||
SendCopyDataToPlacements(copyOutState->fe_msgbuf, shardConnections);
|
||||
|
||||
shardConnections = (ShardConnections *) hash_seq_search(&status);
|
||||
}
|
||||
|
||||
connectionList = ConnectionList(shardConnectionHash);
|
||||
|
||||
EndRemoteCopy(connectionList, true);
|
||||
|
||||
if (CopyTransactionManager == TRANSACTION_MANAGER_2PC)
|
||||
|
|
Loading…
Reference in New Issue