diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-09-17 22:50:43 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-09-17 22:50:43 +0300 |
commit | 85b98b8d5a48092acd03db76a8bf02d9c38c1d79 (patch) | |
tree | b9c5655fd57c7c75b05356104dadc7ce16d54001 /src/backend/commands | |
parent | d8adfc18bebfb1b69b456a00e67453775a77f594 (diff) | |
download | postgresql-85b98b8d5a48092acd03db76a8bf02d9c38c1d79.tar.gz postgresql-85b98b8d5a48092acd03db76a8bf02d9c38c1d79.zip |
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/commands')
-rw-r--r-- | src/backend/commands/waitlsn.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |