projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
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.
author
Simon Riggs
<simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:15:26 +0000
(19:15 +0100)
committer
Simon Riggs
<simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:15:26 +0000
(19:15 +0100)
A tidy up for recently committed changes to startup latch.
Fujii Masao
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
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 */