mirror of https://github.com/citusdata/citus.git
If reference tables was read over multiple connections, do not assign connection
parent
508b392304
commit
b0fd6aa006
|
@ -592,6 +592,14 @@ FindPlacementListConnection(int flags, List *placementAccessList, const char *us
|
|||
"modified over multiple connections")));
|
||||
}
|
||||
}
|
||||
else if (accessType == PLACEMENT_ACCESS_SELECT &&
|
||||
placementEntry->hasSecondaryConnections)
|
||||
{
|
||||
/*
|
||||
* Two separate connections have already selected from this placements.
|
||||
* There is no benefit to using this connection.
|
||||
*/
|
||||
}
|
||||
else if (CanUseExistingConnection(flags, userName, placementConnection))
|
||||
{
|
||||
/*
|
||||
|
@ -599,7 +607,6 @@ FindPlacementListConnection(int flags, List *placementAccessList, const char *us
|
|||
*/
|
||||
|
||||
Assert(placementConnection != NULL);
|
||||
|
||||
chosenConnection = placementConnection->connection;
|
||||
|
||||
if (placementConnection->hadDDL || placementConnection->hadDML)
|
||||
|
|
Loading…
Reference in New Issue