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

Function LocalProcessControlFile

src/backend/access/transam/xlog.c:5195–5201  ·  view source on GitHub ↗

* Read the control file, set respective GUCs. * * This is to be called during startup, including a crash recovery cycle, * unless in bootstrap mode, where no control file yet exists. As there's no * usable shared memory yet (its sizing can depend on the contents of the * control file!), first store the contents in local memory. XLOGShmemInit() * will then copy it to shared memory later. *

Source from the content-addressed store, hash-verified

5193 * reset case, there's a dangling pointer into old shared memory), or not.
5194 */
5195void
5196LocalProcessControlFile(bool reset)
5197{
5198 Assert(reset || ControlFile == NULL);
5199 ControlFile = palloc(sizeof(ControlFileData));
5200 ReadControlFile();
5201}
5202
5203/*
5204 * Initialization of shared memory for XLOG

Callers 4

PostgresMainFunction · 0.85
PostmasterMainFunction · 0.85
PostmasterStateMachineFunction · 0.85
SubPostmasterMainFunction · 0.85

Calls 2

ReadControlFileFunction · 0.85
pallocFunction · 0.50

Tested by

no test coverage detected