Make new replication slot test code less racy

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: d8f3b021c618bf58c19f88fb86476793fd650336
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-07-17T17:19:17Z
Releases: 14.0
Make new replication slot test code less racy

The new test code added in ead9e51e8236 is racy -- it hinges on
shared-memory state, which changes before the WARNING message is logged.
Put it the other way around.

Backpatch to 13.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/202107161809.zclasccpfcg3@alvherre.pgsql

Files

PathChange+/−
src/test/recovery/t/019_replslot_limit.pl modified +15 −12

Discussion