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

Function ShmemBackendArrayAdd

src/backend/postmaster/postmaster.c:7253–7261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7251}
7252
7253static void
7254ShmemBackendArrayAdd(Backend *bn)
7255{
7256 /* The array slot corresponding to my PMChildSlot should be free */
7257 int i = bn->child_slot - 1;
7258
7259 Assert(ShmemBackendArray[i].pid == 0);
7260 ShmemBackendArray[i] = *bn;
7261}
7262
7263static void
7264ShmemBackendArrayRemove(Backend *bn)

Callers 4

BackendStartupFunction · 0.85
StartAutovacuumWorkerFunction · 0.85
StartLMWorkerFunction · 0.85
do_start_bgworkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected