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

Function InitBufferPoolBackend

src/backend/storage/buffer/bufmgr.c:2775–2779  ·  view source on GitHub ↗

* InitBufferPoolBackend --- second-stage initialization of a new backend * * This is called after we have acquired a PGPROC and so can safely get * LWLocks. We don't currently need to do anything at this stage ... * except register a shmem-exit callback. AtProcExit_Buffers needs LWLock * access, and thereby has to be called at the corresponding phase of * backend shutdown. */

Source from the content-addressed store, hash-verified

2773 * backend shutdown.
2774 */
2775void
2776InitBufferPoolBackend(void)
2777{
2778 on_shmem_exit(AtProcExit_Buffers, 0);
2779}
2780
2781/*
2782 * During backend exit, ensure that we released all shared-buffer locks and

Callers 3

InitPostgresFunction · 0.85
AuxiliaryProcessMainFunction · 0.85

Calls 1

on_shmem_exitFunction · 0.85

Tested by

no test coverage detected