From 9c7908b1893cf233c15f2993088b1114ba500a7f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 26 Mar 2009 22:29:20 +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 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) -- 2.50.0