@@ -78,9 +78,6 @@ int WalWriterFlushAfter = DEFAULT_WAL_WRITER_FLUSH_AFTER;
78
78
#define LOOPS_UNTIL_HIBERNATE 50
79
79
#define HIBERNATE_FACTOR 25
80
80
81
- /* Prototypes for private functions */
82
- static void HandleWalWriterInterrupts (void );
83
-
84
81
/*
85
82
* Main entry point for walwriter process
86
83
*
@@ -245,7 +242,7 @@ WalWriterMain(void)
245
242
ResetLatch (MyLatch );
246
243
247
244
/* Process any signals received recently */
248
- HandleWalWriterInterrupts ();
245
+ HandleMainLoopInterrupts ();
249
246
250
247
/*
251
248
* Do what we're here for; then, if XLogBackgroundFlush() found useful
@@ -275,26 +272,3 @@ WalWriterMain(void)
275
272
WAIT_EVENT_WAL_WRITER_MAIN );
276
273
}
277
274
}
278
-
279
- /*
280
- * Interrupt handler for main loops of WAL writer process.
281
- */
282
- static void
283
- HandleWalWriterInterrupts (void )
284
- {
285
- if (ProcSignalBarrierPending )
286
- ProcessProcSignalBarrier ();
287
-
288
- if (ConfigReloadPending )
289
- {
290
- ConfigReloadPending = false;
291
- ProcessConfigFile (PGC_SIGHUP );
292
- }
293
-
294
- if (ShutdownRequestPending )
295
- proc_exit (0 );
296
-
297
- /* Perform logging of memory contexts of this process */
298
- if (LogMemoryContextPending )
299
- ProcessLogMemoryContextInterrupt ();
300
- }
0 commit comments