Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54cbd17

Browse files
committed
If primary_conninfo is not set, don't try to establish streaming
connection.
1 parent9fa01f6 commit54cbd17

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)

[8]ページ先頭

©2009-2025 Movatter.jp