MCPcopy Create free account
hub / github.com/apache/cloudberry / SerializeRelationMap

Function SerializeRelationMap

src/backend/utils/cache/relmapper.c:663–673  ·  view source on GitHub ↗

* SerializeRelationMap * * Serialize active shared and local relmap state for parallel workers. */

Source from the content-addressed store, hash-verified

661 * Serialize active shared and local relmap state for parallel workers.
662 */
663void
664SerializeRelationMap(Size maxSize, char *startAddress)
665{
666 SerializedActiveRelMaps *relmaps;
667
668 Assert(maxSize >= EstimateRelationMapSpace());
669
670 relmaps = (SerializedActiveRelMaps *) startAddress;
671 relmaps->active_shared_updates = active_shared_updates;
672 relmaps->active_local_updates = active_local_updates;
673}
674
675/*
676 * RestoreRelationMap

Callers 1

InitializeParallelDSMFunction · 0.85

Calls 1

EstimateRelationMapSpaceFunction · 0.85

Tested by

no test coverage detected