diff options
author | Alexander Korotkov | 2024-09-17 19:50:43 +0000 |
---|---|---|
committer | Alexander Korotkov | 2024-09-17 19:50:43 +0000 |
commit | 85b98b8d5a48092acd03db76a8bf02d9c38c1d79 (patch) | |
tree | b9c5655fd57c7c75b05356104dadc7ce16d54001 /src/backend | |
parent | d8adfc18bebfb1b69b456a00e67453775a77f594 (diff) |
Minor cleanup related to pg_wal_replay_wait() procedure
* Rename $node_standby1 to $node_standby in 043_wal_replay_wait.pl as there
is only one standby.
* Remove useless debug printing in 043_wal_replay_wait.pl.
* Fix typo in one check description in 043_wal_replay_wait.pl.
* Fix some wording in comments and documentation.
Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/1d7b08f2-64a2-77fb-c666-c9a74c68eeda%40gmail.com
Reviewed-by: Alexander Lakhin
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 | ||||
-rw-r--r-- | src/backend/commands/waitlsn.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index e96aa4d1cb1..853ab06812b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6168,7 +6168,7 @@ StartupXLOG(void) /* * Wake up all waiters for replay LSN. They need to report an error that - * recovery was ended before achieving the target LSN. + * recovery was ended before reaching the target LSN. */ WaitLSNSetLatches(InvalidXLogRecPtr); diff --git a/src/backend/commands/waitlsn.c b/src/backend/commands/waitlsn.c index d7065726749..ffa83a20008 100644 --- a/src/backend/commands/waitlsn.c +++ b/src/backend/commands/waitlsn.c @@ -299,7 +299,7 @@ WaitForLSNReplay(XLogRecPtr targetLSN, int64 timeout) /* * If the timeout value is specified, calculate the number of * milliseconds before the timeout. Exit if the timeout is already - * achieved. + * reached. */ if (timeout > 0) { @@ -325,7 +325,7 @@ WaitForLSNReplay(XLogRecPtr targetLSN, int64 timeout) deleteLSNWaiter(); /* - * If we didn't achieve the target LSN, we must be exited by timeout. + * If we didn't reach the target LSN, we must be exited by timeout. */ if (targetLSN > currentLSN) { |