diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2010-10-14 19:15:26 +0100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2010-10-14 19:15:26 +0100 |
commit | 3bbcc5c9992f21fa735f438f5ff5f3a81efea39c (patch) | |
tree | 1f22dbae9008ddf1894c150b9195328345d493b3 | |
parent | 45cd9199c2498b04cccc3989a5abbd04def806b3 (diff) | |
download | postgresql-3bbcc5c9992f21fa735f438f5ff5f3a81efea39c.tar.gz postgresql-3bbcc5c9992f21fa735f438f5ff5f3a81efea39c.zip |
Make startup process respond to signals to cancel waiting on latch.
A tidy up for recently committed changes to startup latch.
Fujii Masao
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 50e9ca3da12..22fd5780567 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -9174,6 +9174,7 @@ static void StartupProcSigHupHandler(SIGNAL_ARGS) { got_SIGHUP = true; + WakeupRecovery(); } /* SIGTERM: set flag to abort redo and exit */ @@ -9184,6 +9185,7 @@ StartupProcShutdownHandler(SIGNAL_ARGS) proc_exit(1); else shutdown_requested = true; + WakeupRecovery(); } /* Handle SIGHUP and SIGTERM signals of startup process */ |