git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 45cd919)
Make startup process respond to signals to cancel waiting on latch.
2010年10月14日 18:15:26 +0000 (19:15 +0100)
2010年10月14日 18:15:26 +0000 (19:15 +0100)
A tidy up for recently committed changes to startup latch.

Fujii Masao


diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 50e9ca3da1231268a4cf7149cc9c134e517c2e48..22fd578056773462411c8294275706c8380d3690 100644 (file)
--- 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 */
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /