OSDN Git Service

Make startup process respond to signals to cancel waiting on latch.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:15:26 +0000 (19:15 +0100)
committerMasaoFujii <masao.fujii@gmail.com>
Wed, 10 Nov 2010 13:07:31 +0000 (22:07 +0900)
A tidy up for recently committed changes to startup latch.

Fujii Masao

src/backend/access/transam/xlog.c

index 74057d1..b6a2fdd 100644 (file)
@@ -9195,6 +9195,7 @@ static void
 StartupProcSigHupHandler(SIGNAL_ARGS)
 {
        got_SIGHUP = true;
+       WakeupRecovery();
 }
 
 /* SIGTERM: set flag to abort redo and exit */
@@ -9205,6 +9206,7 @@ StartupProcShutdownHandler(SIGNAL_ARGS)
                proc_exit(1);
        else
                shutdown_requested = true;
+       WakeupRecovery();
 }
 
 /* Handle SIGHUP and SIGTERM signals of startup process */