OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b89ac73
)
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
MasaoFujii
<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
patch
|
blob
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index
74057d1
..
b6a2fdd
100644
(file)
--- a/
src/backend/access/transam/xlog.c
+++ b/
src/backend/access/transam/xlog.c
@@
-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 */