* 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. */
| 1198 | * handlers and does initialization that is required by a postgres backend. |
| 1199 | */ |
| 1200 | void |
| 1201 | BackoffSweeperMain(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 |
nothing calls this directly
no test coverage detected