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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Move InRecovery and standbyState global vars to xlogutils.c.
Дата
Msg-id E1m9j9N-0005tg-H8@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления: