Move definition of XLogRecoveryCtlData to xlogrecovery.h

XLogRecoveryCtlData is the structure that stores the shared-memory state
of WAL recovery, including information such as promotion requests, the
timeline ID (TLI), and the LSNs of replayed records.

This refactoring is independently useful because it allows code outside
of core to access the recovery state in live.  It will be used by an
upcoming patch that introduces a SQL function for querying this
information, that can be accessed on a standby once a consistent state
has been reached.  This only moves code around, changing nothing
functionally.

Author: Xuneng Zhou <[email protected]>
Discussion: 
https://postgr.es/m/cabptf7w+nody-+p9y4pnk37-qwulpfureonhuehrx+vx9kq...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5f8124a0cf33fe421b915b57dcf04fea8b7a252c

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 66 +-----------------------------
src/include/access/xlogrecovery.h         | 67 +++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 65 deletions(-)

Reply via email to