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

Function UpdateSharedMemoryConfig

src/backend/postmaster/checkpointer.c:1328–1341  ·  view source on GitHub ↗

* Update any shared memory configurations based on config parameters */

Source from the content-addressed store, hash-verified

1326 * Update any shared memory configurations based on config parameters
1327 */
1328static void
1329UpdateSharedMemoryConfig(void)
1330{
1331 /* update global shmem state for sync rep */
1332 SyncRepUpdateSyncStandbysDefined();
1333
1334 /*
1335 * If full_page_writes has been changed by SIGHUP, we update it in shared
1336 * memory and write an XLOG_FPW_CHANGE record.
1337 */
1338 UpdateFullPageWrites();
1339
1340 elog(DEBUG2, "checkpointer updated shared memory configuration values");
1341}
1342
1343/*
1344 * FirstCallSinceLastCheckpoint allows a process to take an action once

Callers 3

CheckpointerMainFunction · 0.85
CheckpointWriteDelayFunction · 0.85

Calls 2

UpdateFullPageWritesFunction · 0.85

Tested by

no test coverage detected