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

Function BackoffSweeperMain

src/backend/postmaster/backoff.c:1200–1213  ·  view source on GitHub ↗

* This method is called after fork of the sweeper process. It sets up signal * handlers and does initialization that is required by a postgres backend. */

Source from the content-addressed store, hash-verified

1198 * handlers and does initialization that is required by a postgres backend.
1199 */
1200void
1201BackoffSweeperMain(Datum main_arg)
1202{
1203 isSweeperProcess = true;
1204
1205 /* We're now ready to receive signals */
1206 BackgroundWorkerUnblockSignals();
1207
1208 /* main loop */
1209 BackoffSweeperLoop();
1210
1211 /* One iteration done, go away */
1212 proc_exit(0);
1213}
1214
1215/**
1216 * Main loop of the sweeper process. It wakes up once in a while, marks backends as active

Callers

nothing calls this directly

Calls 3

BackoffSweeperLoopFunction · 0.85
proc_exitFunction · 0.85

Tested by

no test coverage detected