mirror of https://github.com/citusdata/citus.git
Remove odd memcpy usag in BuildCachedShardList
parent
7c2a2d08af
commit
70fb9c851b
|
@ -1223,9 +1223,8 @@ BuildCachedShardList(DistTableCacheEntry *cacheEntry)
|
|||
{
|
||||
GroupShardPlacement *srcPlacement =
|
||||
(GroupShardPlacement *) lfirst(placementCell);
|
||||
GroupShardPlacement *dstPlacement = &placementArray[placementOffset];
|
||||
|
||||
memcpy(dstPlacement, srcPlacement, sizeof(GroupShardPlacement));
|
||||
placementArray[placementOffset] = *srcPlacement;
|
||||
placementOffset++;
|
||||
}
|
||||
MemoryContextSwitchTo(oldContext);
|
||||
|
|
Loading…
Reference in New Issue