signal_handler_wakeup_recovery_v1.patch
application/octet-stream
Filename: signal_handler_wakeup_recovery_v1.patch
Type: application/octet-stream
Part: 0
Message:
Re: Latches, signals, and waiting
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
Series: patch v1
| File | + | − |
|---|---|---|
| src/backend/access/transam/xlog.c | 2 | 0 |
*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 9174,9179 **** static void
--- 9174,9180 ----
StartupProcSigHupHandler(SIGNAL_ARGS)
{
got_SIGHUP = true;
+ WakeupRecovery();
}
/* SIGTERM: set flag to abort redo and exit */
***************
*** 9184,9189 **** StartupProcShutdownHandler(SIGNAL_ARGS)
--- 9185,9191 ----
proc_exit(1);
else
shutdown_requested = true;
+ WakeupRecovery();
}
/* Handle SIGHUP and SIGTERM signals of startup process */