pgsql: Fix race in test of pg_switch_wal().

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix race in test of pg_switch_wal().
Date: 2020-09-14 06:19:38
Message-ID: E1kHhpy-0001EB-61@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6a7a5fce9a7421cc0e07341921787f55a814249b

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

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2020-09-14 06:32:00 pgsql: Fix interpolation in test name.
Previous Message Fujii Masao 2020-09-14 05:16:24 pgsql: Fix typos.