diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2021-07-31 09:50:26 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2021-07-31 09:50:26 +0300 |
commit | 317632f3073fc06047a42075eb5e28a9577a4f96 (patch) | |
tree | a9d01818156027ccafe91e2110feadb9c012b8d4 /src/backend/storage/ipc | |
parent | 4fe8dcdff3af73f6ca16eb3edfa3339c7ee0d2c4 (diff) | |
download | postgresql-317632f3073fc06047a42075eb5e28a9577a4f96.tar.gz postgresql-317632f3073fc06047a42075eb5e28a9577a4f96.zip |
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/storage/ipc')
-rw-r--r-- | src/backend/storage/ipc/procarray.c | 2 | ||||
-rw-r--r-- | src/backend/storage/ipc/standby.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 09c97c58b87..c7816fcfb30 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -52,7 +52,7 @@ #include "access/transam.h" #include "access/twophase.h" #include "access/xact.h" -#include "access/xlog.h" +#include "access/xlogutils.h" #include "catalog/catalog.h" #include "catalog/pg_authid.h" #include "commands/dbcommands.h" diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c index aeecaf6cabf..077251c1a65 100644 --- a/src/backend/storage/ipc/standby.c +++ b/src/backend/storage/ipc/standby.c @@ -19,8 +19,8 @@ #include "access/transam.h" #include "access/twophase.h" #include "access/xact.h" -#include "access/xlog.h" #include "access/xloginsert.h" +#include "access/xlogutils.h" #include "miscadmin.h" #include "pgstat.h" #include "storage/bufmgr.h" |