From: Tom Lane Date: Thu, 26 Mar 2009 22:29:20 +0000 (+0000) Subject: Make pg_standby's maxretries option do what one would expect. Fujii Masao X-Git-Tag: REL8_3_8~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7908b1893cf233c15f2993088b1114ba500a7f;p=thirdparty%2Fpostgresql.git Make pg_standby's maxretries option do what one would expect. Fujii Masao --- diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index c4ba24a7608..edad7efb12f 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -400,7 +400,7 @@ RestoreWALFileForRecovery(void) fflush(stderr); } - while (numretries < maxretries) + while (numretries <= maxretries) { rc = system(restoreCommand); if (rc == 0)