Commit c7662960 authored by Tom Lane's avatar Tom Lane

Make pg_standby's maxretries option do what one would expect. Fujii Masao

parent 8032d76b
/* /*
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.20 2009/03/18 20:30:35 heikki Exp $ * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.21 2009/03/26 22:29:13 tgl Exp $
* *
* *
* pg_standby.c * pg_standby.c
...@@ -406,7 +406,7 @@ RestoreWALFileForRecovery(void) ...@@ -406,7 +406,7 @@ RestoreWALFileForRecovery(void)
fflush(stderr); fflush(stderr);
} }
while (numretries < maxretries) while (numretries <= maxretries)
{ {
rc = system(restoreCommand); rc = system(restoreCommand);
if (rc == 0) if (rc == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment