mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
If primary_conninfo is not set, don't try to establish streaming
connection.
This commit is contained in:
parent
9fa01f6c8a
commit
54cbd1757e
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.371 2010/02/12 07:36:44 heikki Exp $
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.372 2010/02/12 07:56:36 heikki Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -8796,6 +8796,7 @@ XLogPageRead(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt,
|
|||||||
* that when we later jump backwards to start redo at
|
* that when we later jump backwards to start redo at
|
||||||
* RedoStartLSN, we will have the logs streamed already.
|
* RedoStartLSN, we will have the logs streamed already.
|
||||||
*/
|
*/
|
||||||
|
if (PrimaryConnInfo)
|
||||||
RequestXLogStreaming(fetching_ckpt ? RedoStartLSN : *RecPtr,
|
RequestXLogStreaming(fetching_ckpt ? RedoStartLSN : *RecPtr,
|
||||||
PrimaryConnInfo);
|
PrimaryConnInfo);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user