Split xlog.c into xlog.c and xlogrecovery.c.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 16 Feb 2022 07:30:38 +0000 (09:30 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 16 Feb 2022 07:30:38 +0000 (09:30 +0200)
commit70e81861fadd9112fa2d425c762e163910a4ee52
tree2ef359340ed71a8b4234c2c2e49edb735091de43
parentbe1c00ab13a7c2c9299d60cb5a9d285c40e2506c
Split xlog.c into xlog.c and xlogrecovery.c.

This moves the functions related to performing WAL recovery into the new
xlogrecovery.c source file, leaving xlog.c responsible for maintaining
the WAL buffers, coordinating the startup and switch from recovery to
normal operations, and other miscellaneous stuff that have always been in
xlog.c.

Reviewed-by: Andres Freund, Kyotaro Horiguchi, Robert Haas
Discussion: https://www.postgresql.org/message-id/a31f27b4-a31d-f976-6217-2b03be646ffa%40iki.fi
22 files changed:
contrib/pg_prewarm/autoprewarm.c
src/backend/access/transam/Makefile
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/access/transam/xlogrecovery.c [new file with mode: 0644]
src/backend/access/transam/xlogutils.c
src/backend/postmaster/checkpointer.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/startup.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/slotfuncs.c
src/backend/replication/walreceiver.c
src/backend/replication/walreceiverfuncs.c
src/backend/replication/walsender.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/standby.c
src/backend/storage/sync/sync.c
src/backend/utils/misc/guc.c
src/include/access/xlog.h
src/include/access/xlogrecovery.h [new file with mode: 0644]
src/tools/pgindent/typedefs.list