When reaches to executor pool size, COPY sets the placement access

It looks like we forgot to set the placement accesses, and
this could lead to self-deadlocks on complex transaction blocks.
pull/4588/head
Onder Kalaci 2021-01-27 10:17:56 +01:00
parent bb5962ee79
commit 36bdeef1bb
1 changed files with 6 additions and 0 deletions

View File

@ -3583,6 +3583,12 @@ CopyGetPlacementConnection(HTAB *connectionStateHash, ShardPlacement *placement,
nodeName,
nodePort);
/*
* Make sure that the connection management remembers that Citus
* accesses this placement over the connection.
*/
AssignPlacementListToConnection(list_make1(placementAccess), connection);
return connection;
}