]> 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)
commit7099ba0580356bb455d75de4f6cd0faa046e1a10
tree211a78be33cd9c2dfdf4d816526a4c2ea39d3bb1
parent35e9d26a1bfe0d4fb726edc5c03b8e4fcc0a9869
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