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-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b81b7645608a292bf7054961de8efec47ba73705;p=users%2Fbernd%2Fpostgres.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 c4ba24a760..edad7efb12 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)