Обсуждение: pgsql: Move InRecovery and standbyState global vars to xlogutils.c.

Поиск
Список
Период
Сортировка

pgsql: Move InRecovery and standbyState global vars to xlogutils.c.

От
Heikki Linnakangas
Дата:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/317632f3073fc06047a42075eb5e28a9577a4f96

Modified Files
--------------
src/backend/access/heap/visibilitymap.c |  2 +-
src/backend/access/transam/commit_ts.c  |  1 +
src/backend/access/transam/multixact.c  |  2 +-
src/backend/access/transam/slru.c       |  1 +
src/backend/access/transam/varsup.c     |  2 +-
src/backend/access/transam/xlog.c       | 16 -------------
src/backend/access/transam/xlogutils.c  | 20 ++++++++++++++++
src/backend/commands/tablespace.c       |  2 +-
src/backend/postmaster/startup.c        |  1 +
src/backend/storage/buffer/bufmgr.c     |  2 +-
src/backend/storage/ipc/procarray.c     |  2 +-
src/backend/storage/ipc/standby.c       |  2 +-
src/backend/storage/lmgr/lock.c         |  1 +
src/backend/storage/lmgr/proc.c         |  2 +-
src/backend/storage/smgr/smgr.c         |  2 +-
src/include/access/xlog.h               | 42 ---------------------------------
src/include/access/xlogutils.h          | 42 +++++++++++++++++++++++++++++++++
17 files changed, 75 insertions(+), 67 deletions(-)