Move InRecovery and standbyState global vars to xlogutils.c.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 317632f3073fc06047a42075eb5e28a9577a4f96
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2021-07-31T06:50:26Z
Releases: 15.0
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

Files

Discussion