summaryrefslogtreecommitdiff
path: root/src/backend/postmaster
diff options
context:
space:
mode:
authorHeikki Linnakangas2021-07-31 06:50:26 +0000
committerHeikki Linnakangas2021-07-31 06:50:26 +0000
commit317632f3073fc06047a42075eb5e28a9577a4f96 (patch)
treea9d01818156027ccafe91e2110feadb9c012b8d4 /src/backend/postmaster
parent4fe8dcdff3af73f6ca16eb3edfa3339c7ee0d2c4 (diff)
Move InRecovery and standbyState global vars to xlogutils.c.
They are used in code that runs both during normal operation and during WAL replay, and needs to behave differently during replay. Move them to xlogutils.c, because that's where we have other helper functions used by redo routines. Reviewed-by: Andres Freund Discussion: https://www.postgresql.org/message-id/b3b71061-4919-e882-4857-27e370ab134a%40iki.fi
Diffstat (limited to 'src/backend/postmaster')
-rw-r--r--src/backend/postmaster/startup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/postmaster/startup.c b/src/backend/postmaster/startup.c
index 69077bd2075..0f4f00d6895 100644
--- a/src/backend/postmaster/startup.c
+++ b/src/backend/postmaster/startup.c
@@ -20,6 +20,7 @@
#include "postgres.h"
#include "access/xlog.h"
+#include "access/xlogutils.h"
#include "libpq/pqsignal.h"
#include "miscadmin.h"
#include "pgstat.h"