Remove odd memcpy usag in BuildCachedShardList

pull/2520/head
Marco Slot 2018-12-04 14:09:10 +01:00
parent 7c2a2d08af
commit 70fb9c851b
1 changed files with 1 additions and 2 deletions

View File

@ -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);