aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2022-02-16 09:30:38 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2022-02-16 09:30:38 +0200
commit70e81861fadd9112fa2d425c762e163910a4ee52 (patch)
tree2ef359340ed71a8b4234c2c2e49edb735091de43 /src/backend/access/transam/xlogutils.c
parentbe1c00ab13a7c2c9299d60cb5a9d285c40e2506c (diff)
downloadpostgresql-70e81861fadd9112fa2d425c762e163910a4ee52.tar.gz
postgresql-70e81861fadd9112fa2d425c762e163910a4ee52.zip
Split xlog.c into xlog.c and xlogrecovery.c.
This moves the functions related to performing WAL recovery into the new xlogrecovery.c source file, leaving xlog.c responsible for maintaining the WAL buffers, coordinating the startup and switch from recovery to normal operations, and other miscellaneous stuff that have always been in xlog.c. Reviewed-by: Andres Freund, Kyotaro Horiguchi, Robert Haas Discussion: https://www.postgresql.org/message-id/a31f27b4-a31d-f976-6217-2b03be646ffa%40iki.fi
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
-rw-r--r--src/backend/access/transam/xlogutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c
index 90e1c483907..54d5f20734b 100644
--- a/src/backend/access/transam/xlogutils.c
+++ b/src/backend/access/transam/xlogutils.c
@@ -20,7 +20,7 @@
#include <unistd.h>
#include "access/timeline.h"
-#include "access/xlog.h"
+#include "access/xlogrecovery.h"
#include "access/xlog_internal.h"
#include "access/xlogutils.h"
#include "miscadmin.h"
@@ -46,8 +46,8 @@ bool ignore_invalid_pages = false;
* process you're running in, use RecoveryInProgress() but only after shared
* memory startup and lock initialization.
*
- * This is updated from xlog.c, but lives here because it's mostly read by
- * WAL redo functions.
+ * This is updated from xlog.c and xlogrecovery.c, but lives here because
+ * it's mostly read by WAL redo functions.
*/
bool InRecovery = false;