aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-01-28 19:17:22 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-01-28 19:17:22 +0000
commitb0509ef6016abf1133a9d85dd4f60b865ee9f90b (patch)
tree37a5f76e5ac4d8d524a45514c9893f7c9712ee77 /src
parent083e1b0f27df985a82dda656c0e5bafd17930d06 (diff)
downloadpostgresql-b0509ef6016abf1133a9d85dd4f60b865ee9f90b.tar.gz
postgresql-b0509ef6016abf1133a9d85dd4f60b865ee9f90b.zip
Fix crashing bug at the end of recovery in Streaming Replication, when
restore_command is not given. Fujii Masao.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index e8e79b380ee..5bee1d8837d 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.363 2010/01/27 16:41:09 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.364 2010/01/28 19:17:22 heikki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2760,7 +2760,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
uint32 restartSeg;
/* In standby mode, restore_command might not be supplied */
- if (StandbyMode && recoveryRestoreCommand == NULL)
+ if (recoveryRestoreCommand == NULL)
goto not_available;
/*