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/commands/tablespace.c | |
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/commands/tablespace.c')
-rw-r--r-- | src/backend/commands/tablespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 0385fd61214..a54239a8b35 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -56,8 +56,8 @@ #include "access/sysattr.h" #include "access/tableam.h" #include "access/xact.h" -#include "access/xlog.h" #include "access/xloginsert.h" +#include "access/xlogutils.h" #include "catalog/catalog.h" #include "catalog/dependency.h" #include "catalog/indexing.h" |