aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/init/postinit.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 646126edee5..7292e51f7de 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -624,25 +624,14 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username,
}
/*
- * Initialize local process's access to XLOG.
+ * If this is either a bootstrap process nor a standalone backend, start
+ * up the XLOG machinery, and register to have it closed down at exit.
+ * In other cases, the startup process is responsible for starting up
+ * the XLOG machinery, and the checkpointer for closing it down.
*/
- if (IsUnderPostmaster)
- {
- /*
- * The postmaster already started the XLOG machinery, but we need to
- * call InitXLOGAccess(), if the system isn't in hot-standby mode.
- * This is handled by calling RecoveryInProgress and ignoring the
- * result.
- */
- (void) RecoveryInProgress();
- }
- else
+ if (!IsUnderPostmaster)
{
/*
- * We are either a bootstrap process or a standalone backend. Either
- * way, start up the XLOG machinery, and register to have it closed
- * down at exit.
- *
* We don't yet have an aux-process resource owner, but StartupXLOG
* and ShutdownXLOG will need one. Hence, create said resource owner
* (and register a callback to clean it up after ShutdownXLOG runs).