]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make new replication slot test code less racy
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 17 Jul 2021 17:19:17 +0000 (13:19 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 17 Jul 2021 17:19:17 +0000 (13:19 -0400)
commitd8f3b021c618bf58c19f88fb86476793fd650336
treebcacfa0b39e5c581fc89ca7f5a1f24fe570704d5
parent4466b38ec6ffd4ddea135c5baff978b7b43f8257
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
src/test/recovery/t/019_replslot_limit.pl