File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,6 @@ extern int wal_level;
221221/* Do we need to WAL-log information required only for Hot Standby? */
222222#define XLogStandbyInfoActive () (wal_level >= WAL_LEVEL_HOT_STANDBY)
223223
224- /* Can we allow the standby to accept replication connection from another standby? */
225- #define AllowCascadeReplication () (EnableHotStandby && max_wal_senders > 0)
226-
227224#ifdef WAL_DEBUG
228225extern bool XLOG_DEBUG ;
229226#endif
Original file line number Diff line number Diff line change 1212#ifndef _WALRECEIVER_H
1313#define _WALRECEIVER_H
1414
15+ #include "access/xlog.h"
1516#include "access/xlogdefs.h"
1617#include "storage/spin.h"
1718#include "pgtime.h"
@@ -27,6 +28,9 @@ extern bool hot_standby_feedback;
2728 */
2829#define MAXCONNINFO 1024
2930
31+ /* Can we allow the standby to accept replication connection from another standby? */
32+ #define AllowCascadeReplication () (EnableHotStandby && max_wal_senders > 0)
33+
3034/*
3135 * Values for WalRcv->walRcvState.
3236 */
Original file line number Diff line number Diff line change 1313#define _WALSENDER_H
1414
1515#include "access/xlog.h"
16+ #include "fmgr.h"
1617#include "nodes/nodes.h"
1718#include "storage/latch.h"
1819#include "replication/syncrep.h"
You can’t perform that action at this time.
0 commit comments