1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

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
This commit is contained in:
Alexander Korotkov
2024-09-17 22:50:43 +03:00
parent d8adfc18be
commit 85b98b8d5a
4 changed files with 27 additions and 29 deletions

View File

@@ -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)
{