diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-01-15 20:48:48 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-01-15 20:52:18 +0200 |
commit | b337d9657b4dbb72cfbb1012c15a01c5c74ff533 (patch) | |
tree | cb59bc3a108c15d96b1d93a594af39fe0e8aaebd | |
parent | d25192892d61419278fbb216e695cb070c332092 (diff) | |
download | postgresql-b337d9657b4dbb72cfbb1012c15a01c5c74ff533.tar.gz postgresql-b337d9657b4dbb72cfbb1012c15a01c5c74ff533.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.
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index ce29af43647..c75e9c09de5 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -9415,7 +9415,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_log_hints; + ControlFile->wal_log_hints = xlrec.wal_log_hints; /* * Update minRecoveryPoint to ensure that if recovery is aborted, we |