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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy