Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4b351841
Commit
4b351841
authored
Jan 01, 2014
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename walLogHints to wal_log_hints for easier grepping.
Michael Paquier
parent
7c957ec8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+6
-6
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+1
-1
src/include/access/xlog.h
src/include/access/xlog.h
+2
-2
No files found.
src/backend/access/transam/xlog.c
View file @
4b351841
...
...
@@ -79,7 +79,7 @@ bool XLogArchiveMode = false;
char
*
XLogArchiveCommand
=
NULL
;
bool
EnableHotStandby
=
false
;
bool
fullPageWrites
=
true
;
bool
wal
LogH
ints
=
false
;
bool
wal
_log_h
ints
=
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
=
wal
LogH
ints
;
ControlFile
->
wal_log_hints
=
wal
_log_h
ints
;
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
||
wal
LogH
ints
!=
ControlFile
->
wal_log_hints
||
wal
_log_h
ints
!=
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
=
wal
LogH
ints
;
xlrec
.
wal_log_hints
=
wal
_log_h
ints
;
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
=
wal
LogH
ints
;
ControlFile
->
wal_log_hints
=
wal
_log_h
ints
;
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
=
wal
LogH
ints
;
ControlFile
->
wal_log_hints
=
wal
_log_h
ints
;
/*
* Update minRecoveryPoint to ensure that if recovery is aborted, we
...
...
src/backend/utils/misc/guc.c
View file @
4b351841
...
...
@@ -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
},
&
wal
LogH
ints
,
&
wal
_log_h
ints
,
false
,
NULL
,
NULL
,
NULL
},
...
...
src/include/access/xlog.h
View file @
4b351841
...
...
@@ -189,7 +189,7 @@ extern bool XLogArchiveMode;
extern
char
*
XLogArchiveCommand
;
extern
bool
EnableHotStandby
;
extern
bool
fullPageWrites
;
extern
bool
wal
LogH
ints
;
extern
bool
wal
_log_h
ints
;
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() || wal
LogH
ints)
#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal
_log_h
ints)
/* Do we need to WAL-log information required only for Hot Standby and logical replication? */
#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_HOT_STANDBY)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment