Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b35184

Browse files
committed
Rename walLogHints to wal_log_hints for easier grepping.
Michael Paquier
1 parent7c957ec commit4b35184

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 @@ boolXLogArchiveMode = false;
7979
char*XLogArchiveCommand=NULL;
8080
boolEnableHotStandby= false;
8181
boolfullPageWrites= true;
82-
boolwalLogHints= false;
82+
boolwal_log_hints= false;
8383
boollog_checkpoints= false;
8484
intsync_method=DEFAULT_SYNC_METHOD;
8585
intwal_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
externchar*XLogArchiveCommand;
190190
externboolEnableHotStandby;
191191
externboolfullPageWrites;
192-
externboolwalLogHints;
192+
externboolwal_log_hints;
193193
externboollog_checkpoints;
194194
externintnum_xloginsert_slots;
195195

@@ -221,7 +221,7 @@ extern intwal_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-
#defineXLogHintBitIsNeeded() (DataChecksumsEnabled() ||walLogHints)
224+
#defineXLogHintBitIsNeeded() (DataChecksumsEnabled() ||wal_log_hints)
225225

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp