]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move InRecovery and standbyState global vars to xlogutils.c.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 31 Jul 2021 06:50:26 +0000 (09:50 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 31 Jul 2021 06:50:26 +0000 (09:50 +0300)
commit317632f3073fc06047a42075eb5e28a9577a4f96
treea9d01818156027ccafe91e2110feadb9c012b8d4
parent4fe8dcdff3af73f6ca16eb3edfa3339c7ee0d2c4
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
17 files changed:
src/backend/access/heap/visibilitymap.c
src/backend/access/transam/commit_ts.c
src/backend/access/transam/multixact.c
src/backend/access/transam/slru.c
src/backend/access/transam/varsup.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/commands/tablespace.c
src/backend/postmaster/startup.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/standby.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/proc.c
src/backend/storage/smgr/smgr.c
src/include/access/xlog.h
src/include/access/xlogutils.h