Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b337d96

Browse files
committed
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.
1 parent d251928 commit b337d96

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9415,7 +9415,7 @@ xlog_redo(XLogRecPtr lsn, XLogRecord *record)
94159415
ControlFile->max_prepared_xacts = xlrec.max_prepared_xacts;
94169416
ControlFile->max_locks_per_xact = xlrec.max_locks_per_xact;
94179417
ControlFile->wal_level = xlrec.wal_level;
9418-
ControlFile->wal_log_hints = wal_log_hints;
9418+
ControlFile->wal_log_hints = xlrec.wal_log_hints;
94199419

94209420
/*
94219421
* Update minRecoveryPoint to ensure that if recovery is aborted, we

0 commit comments

Comments
 (0)