mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Move AllowCascadeReplication() define from xlog.h to replication include
file. Per suggestion from Alvaro.
This commit is contained in:
parent
ca598c18c6
commit
85e6e1662b
@ -221,9 +221,6 @@ extern int wal_level;
|
|||||||
/* Do we need to WAL-log information required only for Hot Standby? */
|
/* Do we need to WAL-log information required only for Hot Standby? */
|
||||||
#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_HOT_STANDBY)
|
#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_HOT_STANDBY)
|
||||||
|
|
||||||
/* Can we allow the standby to accept replication connection from another standby? */
|
|
||||||
#define AllowCascadeReplication() (EnableHotStandby && max_wal_senders > 0)
|
|
||||||
|
|
||||||
#ifdef WAL_DEBUG
|
#ifdef WAL_DEBUG
|
||||||
extern bool XLOG_DEBUG;
|
extern bool XLOG_DEBUG;
|
||||||
#endif
|
#endif
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#ifndef _WALRECEIVER_H
|
#ifndef _WALRECEIVER_H
|
||||||
#define _WALRECEIVER_H
|
#define _WALRECEIVER_H
|
||||||
|
|
||||||
|
#include "access/xlog.h"
|
||||||
#include "access/xlogdefs.h"
|
#include "access/xlogdefs.h"
|
||||||
#include "storage/spin.h"
|
#include "storage/spin.h"
|
||||||
#include "pgtime.h"
|
#include "pgtime.h"
|
||||||
@ -27,6 +28,9 @@ extern bool hot_standby_feedback;
|
|||||||
*/
|
*/
|
||||||
#define MAXCONNINFO 1024
|
#define MAXCONNINFO 1024
|
||||||
|
|
||||||
|
/* Can we allow the standby to accept replication connection from another standby? */
|
||||||
|
#define AllowCascadeReplication() (EnableHotStandby && max_wal_senders > 0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Values for WalRcv->walRcvState.
|
* Values for WalRcv->walRcvState.
|
||||||
*/
|
*/
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#define _WALSENDER_H
|
#define _WALSENDER_H
|
||||||
|
|
||||||
#include "access/xlog.h"
|
#include "access/xlog.h"
|
||||||
|
#include "fmgr.h"
|
||||||
#include "nodes/nodes.h"
|
#include "nodes/nodes.h"
|
||||||
#include "storage/latch.h"
|
#include "storage/latch.h"
|
||||||
#include "replication/syncrep.h"
|
#include "replication/syncrep.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user