From: Tom Lane Date: Thu, 26 Mar 2009 22:29:13 +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=ef2a95f72026250ba57c95f7427a0087e8b94ba8;p=users%2Fsimon%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 45ce587a04..ddf2391cb6 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -406,7 +406,7 @@ RestoreWALFileForRecovery(void) fflush(stderr); } - while (numretries < maxretries) + while (numretries <= maxretries) { rc = system(restoreCommand); if (rc == 0)