mirror of https://github.com/citusdata/citus.git
When reaches to shared 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
parent
36bdeef1bb
commit
04fcd73eb6
|
@ -3649,6 +3649,12 @@ CopyGetPlacementConnection(HTAB *connectionStateHash, ShardPlacement *placement,
|
||||||
connection =
|
connection =
|
||||||
GetLeastUtilisedCopyConnection(copyConnectionStateList, nodeName,
|
GetLeastUtilisedCopyConnection(copyConnectionStateList, nodeName,
|
||||||
nodePort);
|
nodePort);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make sure that the connection management remembers that Citus
|
||||||
|
* accesses this placement over the connection.
|
||||||
|
*/
|
||||||
|
AssignPlacementListToConnection(list_make1(placementAccess), connection);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue