aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-01-15 20:48:48 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-01-15 20:52:41 +0200
commit49b04188f83fb8cacf925978989bc20399e76786 (patch)
tree7ab8c191462cf2cb17591f91ef82f7c8f855779b /src/backend/access/transam/xlog.c
parent8e166e164c7c4531d7eb150d836aa2357989237a (diff)
downloadpostgresql-49b04188f83fb8cacf925978989bc20399e76786.tar.gz
postgresql-49b04188f83fb8cacf925978989bc20399e76786.zip
Fix thinko in re-setting wal_log_hints flag from a parameter-change record.
The flag is supposed to be copied from the record. Same issue with track_commit_timestamps, but that's master-only. Report and fix by Petr Jalinek. Backpatch to 9.4, where wal_log_hints was added.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 839ea7c7a05..629a457965f 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -8962,8 +8962,8 @@ xlog_redo(XLogReaderState *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_log_hints;
- ControlFile->track_commit_timestamp = track_commit_timestamp;
+ ControlFile->wal_log_hints = xlrec.wal_log_hints;
+ ControlFile->track_commit_timestamp = xlrec.track_commit_timestamp;
/*
* Update minRecoveryPoint to ensure that if recovery is aborted, we