mirror of https://github.com/citusdata/citus.git
Prevent multiple placements of a single shard to lead huge memory allocations
parent
cb481f55cf
commit
910ea392f5
|
@ -2545,6 +2545,12 @@ IntersectPlacementList(List *lhsPlacementList, List *rhsPlacementList)
|
||||||
WORKER_LENGTH) == 0)
|
WORKER_LENGTH) == 0)
|
||||||
{
|
{
|
||||||
placementList = lappend(placementList, rhsPlacement);
|
placementList = lappend(placementList, rhsPlacement);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We don't need to add the same placement over and over again. This
|
||||||
|
* could happen if both placements of a shard appear on the same node.
|
||||||
|
*/
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue