mirror of https://github.com/citusdata/citus.git
Merge pull request #2520 from citusdata/remove_memcpy
Remove odd memcpy usage in BuildCachedShardListpull/2496/head
commit
2967d8e65f
|
@ -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