Fix race in test of pg_switch_wal().

Noah Misch <noah@leadboat.com>

Commit: e09391a0a042a631de05faa195aea86acc66ba43
Author: Noah Misch <noah@leadboat.com>
Date: 2020-09-14T06:14:56Z
Releases: 9.6.20
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.

Files

PathChange+/−
src/test/recovery/t/020_archive_status.pl modified +6 −4