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

Function RelationMapInitialize

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

* RelationMapInitialize * * This initializes the mapper module at process startup. We can't access the * database yet, so just make sure the maps are empty. */

Source from the content-addressed store, hash-verified

588 * database yet, so just make sure the maps are empty.
589 */
590void
591RelationMapInitialize(void)
592{
593 /* The static variables should initialize to zeroes, but let's be sure */
594 shared_map.magic = 0; /* mark it not loaded */
595 local_map.magic = 0;
596 shared_map.num_mappings = 0;
597 local_map.num_mappings = 0;
598 active_shared_updates.num_mappings = 0;
599 active_local_updates.num_mappings = 0;
600 pending_shared_updates.num_mappings = 0;
601 pending_local_updates.num_mappings = 0;
602}
603
604/*
605 * RelationMapInitializePhase2

Callers 1

RelationCacheInitializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected