Skip to content

Commit 4b35184

Browse files
committed
Rename walLogHints to wal_log_hints for easier grepping.
Michael Paquier
1 parent 7c957ec commit 4b35184

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/backend/access/transam/xlog.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bool XLogArchiveMode = false;
7979
char *XLogArchiveCommand = NULL;
8080
bool EnableHotStandby = false;
8181
bool fullPageWrites = true;
82-
bool walLogHints = false;
82+
bool wal_log_hints = false;
8383
bool log_checkpoints = false;
8484
int sync_method = DEFAULT_SYNC_METHOD;
8585
int wal_level = WAL_LEVEL_MINIMAL;
@@ -5271,7 +5271,7 @@ BootStrapXLOG(void)
52715271
ControlFile->max_prepared_xacts = max_prepared_xacts;
52725272
ControlFile->max_locks_per_xact = max_locks_per_xact;
52735273
ControlFile->wal_level = wal_level;
5274-
ControlFile->wal_log_hints = walLogHints;
5274+
ControlFile->wal_log_hints = wal_log_hints;
52755275
ControlFile->data_checksum_version = bootstrap_data_checksum_version;
52765276

52775277
/* some additional ControlFile fields are set in WriteControlFile() */
@@ -9060,7 +9060,7 @@ static void
90609060
XLogReportParameters(void)
90619061
{
90629062
if (wal_level != ControlFile->wal_level ||
9063-
walLogHints != ControlFile->wal_log_hints ||
9063+
wal_log_hints != ControlFile->wal_log_hints ||
90649064
MaxConnections != ControlFile->MaxConnections ||
90659065
max_worker_processes != ControlFile->max_worker_processes ||
90669066
max_prepared_xacts != ControlFile->max_prepared_xacts ||
@@ -9083,7 +9083,7 @@ XLogReportParameters(void)
90839083
xlrec.max_prepared_xacts = max_prepared_xacts;
90849084
xlrec.max_locks_per_xact = max_locks_per_xact;
90859085
xlrec.wal_level = wal_level;
9086-
xlrec.wal_log_hints = walLogHints;
9086+
xlrec.wal_log_hints = wal_log_hints;
90879087

90889088
rdata.buffer = InvalidBuffer;
90899089
rdata.data = (char *) &xlrec;
@@ -9098,7 +9098,7 @@ XLogReportParameters(void)
90989098
ControlFile->max_prepared_xacts = max_prepared_xacts;
90999099
ControlFile->max_locks_per_xact = max_locks_per_xact;
91009100
ControlFile->wal_level = wal_level;
9101-
ControlFile->wal_log_hints = walLogHints;
9101+
ControlFile->wal_log_hints = wal_log_hints;
91029102
UpdateControlFile();
91039103
}
91049104
}
@@ -9485,7 +9485,7 @@ xlog_redo(XLogRecPtr lsn, XLogRecord *record)
94859485
ControlFile->max_prepared_xacts = xlrec.max_prepared_xacts;
94869486
ControlFile->max_locks_per_xact = xlrec.max_locks_per_xact;
94879487
ControlFile->wal_level = xlrec.wal_level;
9488-
ControlFile->wal_log_hints = walLogHints;
9488+
ControlFile->wal_log_hints = wal_log_hints;
94899489

94909490
/*
94919491
* Update minRecoveryPoint to ensure that if recovery is aborted, we

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ static struct config_bool ConfigureNamesBool[] =
876876
gettext_noop("Writes full pages to WAL when first modified after a checkpoint, even for a non-critical modifications"),
877877
NULL
878878
},
879-
&walLogHints,
879+
&wal_log_hints,
880880
false,
881881
NULL, NULL, NULL
882882
},

src/include/access/xlog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ extern bool XLogArchiveMode;
189189
extern char *XLogArchiveCommand;
190190
extern bool EnableHotStandby;
191191
extern bool fullPageWrites;
192-
extern bool walLogHints;
192+
extern bool wal_log_hints;
193193
extern bool log_checkpoints;
194194
extern int num_xloginsert_slots;
195195

@@ -221,7 +221,7 @@ extern int wal_level;
221221
* of the bits make it to disk, but the checksum wouldn't match. Also WAL-log
222222
* them if forced by wal_log_hints=on.
223223
*/
224-
#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || walLogHints)
224+
#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints)
225225

226226
/* Do we need to WAL-log information required only for Hot Standby and logical replication? */
227227
#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_HOT_STANDBY)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy