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)
commitef585de80e29d7f20988ce06fafa58a215f6b122
treeef7fffb37adaaaa0a75639d587732bd11e17a6c7
parentf15b76a9010dfd6052405d058bf8c0a488cec979
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