Rename walLogHints to wal_log_hints for easier grepping.
authorRobert Haas <rhaas@postgresql.org>
Thu, 2 Jan 2014 01:17:00 +0000 (20:17 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 2 Jan 2014 01:17:00 +0000 (20:17 -0500)
Michael Paquier

src/backend/access/transam/xlog.c
src/backend/utils/misc/guc.c
src/include/access/xlog.h

index 1277e71071cb3eded2ab6800c7cb971d694bd818..43a04166f18cf5b1b44f099aa36d3afe4d8c170a 100644 (file)
@@ -79,7 +79,7 @@ bool      XLogArchiveMode = false;
 char      *XLogArchiveCommand = NULL;
 bool       EnableHotStandby = false;
 bool       fullPageWrites = true;
-bool       walLogHints = false;
+bool       wal_log_hints = false;
 bool       log_checkpoints = false;
 int            sync_method = DEFAULT_SYNC_METHOD;
 int            wal_level = WAL_LEVEL_MINIMAL;
@@ -5271,7 +5271,7 @@ BootStrapXLOG(void)
    ControlFile->max_prepared_xacts = max_prepared_xacts;
    ControlFile->max_locks_per_xact = max_locks_per_xact;
    ControlFile->wal_level = wal_level;
-   ControlFile->wal_log_hints = walLogHints;
+   ControlFile->wal_log_hints = wal_log_hints;
    ControlFile->data_checksum_version = bootstrap_data_checksum_version;
 
    /* some additional ControlFile fields are set in WriteControlFile() */
@@ -9060,7 +9060,7 @@ static void
 XLogReportParameters(void)
 {
    if (wal_level != ControlFile->wal_level ||
-       walLogHints != ControlFile->wal_log_hints ||
+       wal_log_hints != ControlFile->wal_log_hints ||
        MaxConnections != ControlFile->MaxConnections ||
        max_worker_processes != ControlFile->max_worker_processes ||
        max_prepared_xacts != ControlFile->max_prepared_xacts ||
@@ -9083,7 +9083,7 @@ XLogReportParameters(void)
            xlrec.max_prepared_xacts = max_prepared_xacts;
            xlrec.max_locks_per_xact = max_locks_per_xact;
            xlrec.wal_level = wal_level;
-           xlrec.wal_log_hints = walLogHints;
+           xlrec.wal_log_hints = wal_log_hints;
 
            rdata.buffer = InvalidBuffer;
            rdata.data = (char *) &xlrec;
@@ -9098,7 +9098,7 @@ XLogReportParameters(void)
        ControlFile->max_prepared_xacts = max_prepared_xacts;
        ControlFile->max_locks_per_xact = max_locks_per_xact;
        ControlFile->wal_level = wal_level;
-       ControlFile->wal_log_hints = walLogHints;
+       ControlFile->wal_log_hints = wal_log_hints;
        UpdateControlFile();
    }
 }
@@ -9485,7 +9485,7 @@ xlog_redo(XLogRecPtr lsn, XLogRecord *record)
        ControlFile->max_prepared_xacts = xlrec.max_prepared_xacts;
        ControlFile->max_locks_per_xact = xlrec.max_locks_per_xact;
        ControlFile->wal_level = xlrec.wal_level;
-       ControlFile->wal_log_hints = walLogHints;
+       ControlFile->wal_log_hints = wal_log_hints;
 
        /*
         * Update minRecoveryPoint to ensure that if recovery is aborted, we
index a605363039e40c88414f304e6491466449732aee..f8261b6ad0565417c6cd76dc5cbe7624fb2d535e 100644 (file)
@@ -876,7 +876,7 @@ static struct config_bool ConfigureNamesBool[] =
            gettext_noop("Writes full pages to WAL when first modified after a checkpoint, even for a non-critical modifications"),
            NULL
        },
-       &walLogHints,
+       &wal_log_hints,
        false,
        NULL, NULL, NULL
    },
index 954486a9130f990f9419bc3bff3a6cb58cb8dc2e..91ba0d1dba18cb90acb30eb0d0fcf66dd294eb4d 100644 (file)
@@ -189,7 +189,7 @@ extern bool XLogArchiveMode;
 extern char *XLogArchiveCommand;
 extern bool EnableHotStandby;
 extern bool fullPageWrites;
-extern bool walLogHints;
+extern bool wal_log_hints;
 extern bool log_checkpoints;
 extern int num_xloginsert_slots;
 
@@ -221,7 +221,7 @@ extern int  wal_level;
  * of the bits make it to disk, but the checksum wouldn't match.  Also WAL-log
  * them if forced by wal_log_hints=on.
  */
-#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || walLogHints)
+#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints)
 
 /* Do we need to WAL-log information required only for Hot Standby and logical replication? */
 #define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_HOT_STANDBY)