From 014f9f34d2527c14cdf4150863c053d2a117c1c7 Mon Sep 17 00:00:00 2001 From: Alexander Korotkov Date: Thu, 19 Sep 2024 14:26:03 +0300 Subject: Move pg_wal_replay_wait() to xlogfuncs.c This commit moves pg_wal_replay_wait() procedure to be a neighbor of WAL-related functions in xlogfuncs.c. The implementation of LSN waiting continues to reside in the same place. By proposal from Michael Paquier. Reported-by: Peter Eisentraut Discussion: https://postgr.es/m/18c0fa64-0475-415e-a1bd-665d922c5201%40eisentraut.org --- src/include/commands/waitlsn.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/commands/waitlsn.h b/src/include/commands/waitlsn.h index f719feadb05..bb5ac858dcc 100644 --- a/src/include/commands/waitlsn.h +++ b/src/include/commands/waitlsn.h @@ -76,5 +76,6 @@ extern Size WaitLSNShmemSize(void); extern void WaitLSNShmemInit(void); extern void WaitLSNSetLatches(XLogRecPtr currentLSN); extern void WaitLSNCleanup(void); +extern void WaitForLSNReplay(XLogRecPtr targetLSN, int64 timeout); #endif /* WAIT_LSN_H */ -- cgit v1.2.3