summaryrefslogtreecommitdiff
path: root/src/include/access/xlog.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-04-01 00:43:29 +0000
committerRobert Haas <rhaas@postgresql.org>2010-04-01 00:43:29 +0000
commit54943734f8fca3a9092564f31a7c9c6b8a58c7bc (patch)
treed3ca57d0779689812adb82c71461ddfad5762261 /src/include/access/xlog.h
parent38672aaaa1b8d786cb9ac4eba50860bfce3f1782 (diff)
downloadpostgresql-54943734f8fca3a9092564f31a7c9c6b8a58c7bc.tar.gz
Refer to max_wal_senders in a more consistent fashion.
The error message now makes explicit reference to the GUC that must be changed to fix the problem, using wording suggested by Tom Lane. Along the way, rename the GUC from MaxWalSenders to max_wal_senders for consistency and grep-ability.
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r--src/include/access/xlog.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 9a6cd10761..9a66e9134d 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.104 2010/03/19 11:05:15 sriggs Exp $
+ * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.105 2010/04/01 00:43:29 rhaas Exp $
*/
#ifndef XLOG_H
#define XLOG_H
@@ -202,13 +202,13 @@ extern int MaxStandbyDelay;
* This is in walsender.c, but declared here so that we don't need to include
* walsender.h in all files that check XLogIsNeeded()
*/
-extern int MaxWalSenders;
+extern int max_wal_senders;
/*
* Is WAL-logging necessary? We need to log an XLOG record iff either
* WAL archiving is enabled or XLOG streaming is allowed.
*/
-#define XLogIsNeeded() (XLogArchivingActive() || (MaxWalSenders > 0))
+#define XLogIsNeeded() (XLogArchivingActive() || (max_wal_senders > 0))
/* Do we need to WAL-log information required only for Hot Standby? */
#define XLogStandbyInfoActive() (XLogRequestRecoveryConnections && XLogIsNeeded())