FPW_bug_suppliment.patch
text/x-patch
Filename: FPW_bug_suppliment.patch
Type: text/x-patch
Part: 0
Patch
Format: unified
| File | + | − |
|---|---|---|
| src/backend/access/transam/xlog.c | 11 | 0 |
| src/backend/postmaster/checkpointer.c | 3 | 0 |
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 3025d0badb..c34a6f6f6b 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7961,6 +7961,17 @@ StartupXLOG(void)
*/
WalSndWakeup();
+ /* DEBUG: cause a reload */
+ {
+ struct stat b;
+ if (stat("/tmp/hoge", &b) == 0)
+ {
+ elog(LOG, "STARTUP SLEEP FOR 1s");
+ sleep(1);
+ elog(LOG, "DONE.");
+ DirectFunctionCall1(pg_reload_conf, 0);
+ }
+ }
/*
* If this was a fast promotion, request an (online) checkpoint now. This
* isn't required for consistency, but the last restartpoint might be far
diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c
index 1a033093c5..26da229ca1 100644
--- a/src/backend/postmaster/checkpointer.c
+++ b/src/backend/postmaster/checkpointer.c
@@ -354,6 +354,9 @@ CheckpointerMain(void)
*/
AbsorbFsyncRequests();
+ elog(LOG, "CHECKPOINTER SLEEP FOR 3s");
+ sleep(3);
+ elog(LOG, "DONE.");
if (got_SIGHUP)
{
got_SIGHUP = false;