From ef2a95f72026250ba57c95f7427a0087e8b94ba8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 26 Mar 2009 22:29:13 +0000 Subject: [PATCH] Make pg_standby's maxretries option do what one would expect. Fujii Masao --- contrib/pg_standby/pg_standby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5