Skip to content

Commit b0509ef

Browse files
committed
Fix crashing bug at the end of recovery in Streaming Replication, when
restore_command is not given. Fujii Masao.
1 parent 083e1b0 commit b0509ef

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.363 2010/01/27 16:41:09 heikki Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.364 2010/01/28 19:17:22 heikki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2760,7 +2760,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
27602760
uint32 restartSeg;
27612761

27622762
/* In standby mode, restore_command might not be supplied */
2763-
if (StandbyMode && recoveryRestoreCommand == NULL)
2763+
if (recoveryRestoreCommand == NULL)
27642764
goto not_available;
27652765

27662766
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy