pgsql: Fix race in test of pg_switch_wal(). - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Fix race in test of pg_switch_wal().
Date
Msg-id E1kHhpy-0001E7-4o@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix race in test of pg_switch_wal().

The test failed when something added WAL between pg_switch_wal() and
pg_current_wal_lsn(), seen on buildfarm members hornet and sungazer.
Fix v10, v9.6 and v9.5 by making this code mirror its v13+ counterpart.
v12 and v11 lack a counterpart.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b6a5b766b3e5b7bd25e9d0db60a60657df2aa97e

Modified Files
--------------
src/test/recovery/t/020_archive_status.pl | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Fix typos.
Next
From: Noah Misch
Date:
Subject: pgsql: Fix interpolation in test name.