Skip to content

Commit 54cbd17

Browse files
committed
If primary_conninfo is not set, don't try to establish streaming
connection.
1 parent 9fa01f6 commit 54cbd17

File tree

1 file changed

+4
-3
lines changed
  • src/backend/access/transam

1 file changed

+4
-3
lines changed

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 3 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.371 2010/02/12 07:36:44 heikki Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.372 2010/02/12 07:56:36 heikki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -8796,8 +8796,9 @@ XLogPageRead(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt,
87968796
* that when we later jump backwards to start redo at
87978797
* RedoStartLSN, we will have the logs streamed already.
87988798
*/
8799-
RequestXLogStreaming(fetching_ckpt ? RedoStartLSN : *RecPtr,
8800-
PrimaryConnInfo);
8799+
if (PrimaryConnInfo)
8800+
RequestXLogStreaming(fetching_ckpt ? RedoStartLSN : *RecPtr,
8801+
PrimaryConnInfo);
88018802
}
88028803

88038804
/*

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