aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2021-07-31 09:50:26 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2021-07-31 09:50:26 +0300
commit317632f3073fc06047a42075eb5e28a9577a4f96 (patch)
treea9d01818156027ccafe91e2110feadb9c012b8d4 /src/backend/storage/buffer
parent4fe8dcdff3af73f6ca16eb3edfa3339c7ee0d2c4 (diff)
downloadpostgresql-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/buffer')
-rw-r--r--src/backend/storage/buffer/bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index 86ef607ff38..33d99f604ad 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include "access/tableam.h"
-#include "access/xlog.h"
+#include "access/xlogutils.h"
#include "catalog/catalog.h"
#include "catalog/storage.h"
#include "executor/instrument.h"