summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/replication')
-rw-r--r--src/include/replication/syncrep.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/replication/syncrep.h b/src/include/replication/syncrep.h
index 1c6d39238c4..9171eb61766 100644
--- a/src/include/replication/syncrep.h
+++ b/src/include/replication/syncrep.h
@@ -19,7 +19,8 @@
#include "storage/spin.h"
#include "utils/guc.h"
-#define SyncRepRequested() (sync_rep_mode)
+#define SyncRepRequested() \
+ (synchronous_replication && max_wal_senders > 0)
/* syncRepState */
#define SYNC_REP_NOT_WAITING 0
@@ -28,7 +29,7 @@
#define SYNC_REP_MUST_DISCONNECT 3
/* user-settable parameters for synchronous replication */
-extern bool sync_rep_mode;
+extern bool synchronous_replication;
extern char *SyncRepStandbyNames;
/* called by user backend */