mirror of https://github.com/citusdata/citus.git
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.
(cherry picked from commit 36bdeef1bb
)
pull/4693/head
parent
5bb4bb4b5f
commit
9f27e398a9
|
@ -3583,6 +3583,12 @@ CopyGetPlacementConnection(HTAB *connectionStateHash, ShardPlacement *placement,
|
||||||
nodeName,
|
nodeName,
|
||||||
nodePort);
|
nodePort);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make sure that the connection management remembers that Citus
|
||||||
|
* accesses this placement over the connection.
|
||||||
|
*/
|
||||||
|
AssignPlacementListToConnection(list_make1(placementAccess), connection);
|
||||||
|
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue