diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-03-26 22:29:13 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-03-26 22:29:13 +0000 |
commit | c7662960b134f7797c9b9fa13a6b191e559f0684 (patch) | |
tree | 48b5eb7407ed4a9d2671d0bc59c4a7807873881d | |
parent | 8032d76b5bcb037e6bcb4b5615432d4f3842c523 (diff) | |
download | postgresql-c7662960b134f7797c9b9fa13a6b191e559f0684.tar.gz postgresql-c7662960b134f7797c9b9fa13a6b191e559f0684.zip |
Make pg_standby's maxretries option do what one would expect. Fujii Masao
-rw-r--r-- | contrib/pg_standby/pg_standby.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index 18d75ffaa72..000dac5662a 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -1,5 +1,5 @@ /* - * $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 @@ -406,7 +406,7 @@ RestoreWALFileForRecovery(void) fflush(stderr); } - while (numretries < maxretries) + while (numretries <= maxretries) { rc = system(restoreCommand); if (rc == 0) |