Fix two-phase commit test for recovery mode

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

Commit: ef585de80e29d7f20988ce06fafa58a215f6b122
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-09-01T14:51:55Z
Releases: 10.0
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

Files

PathChange+/−
src/test/recovery/t/009_twophase.pl modified +8 −0

Discussion