]> granicus.if.org Git - postgresql/commit
Fix two-phase commit test for recovery mode
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 1 Sep 2017 14:51:55 +0000 (16:51 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 1 Sep 2017 14:51:55 +0000 (16:51 +0200)
commit89c59b742a7f89eb598a25b70aaa3ab97381f67d
tree41c0493188137859467dab900b393797c66b6234
parenta6979c3a68e2caa6696021f7a15278a99e7409a1
Fix two-phase commit test for recovery mode

The original code had a race condition because it never ensured the
standby was caught up before proceeding; add a wait similar to every
other place that does this.

Author: MichaĆ«l Paquier
Discussion: https://postgr.es/m/CAB7nPqTm9p+LCm1mVJYvgpwagRK+uibT-pKq0O2-paOWxT62jw@mail.gmail.com
src/test/recovery/t/009_twophase.pl