Skip to content

Commit 49b0418

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 8e166e1 commit 49b0418

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8962,8 +8962,8 @@ xlog_redo(XLogReaderState *record)
89628962
ControlFile->max_prepared_xacts = xlrec.max_prepared_xacts;
89638963
ControlFile->max_locks_per_xact = xlrec.max_locks_per_xact;
89648964
ControlFile->wal_level = xlrec.wal_level;
8965-
ControlFile->wal_log_hints = wal_log_hints;
8966-
ControlFile->track_commit_timestamp = track_commit_timestamp;
8965+
ControlFile->wal_log_hints = xlrec.wal_log_hints;
8966+
ControlFile->track_commit_timestamp = xlrec.track_commit_timestamp;
89678967

89688968
/*
89698969
* 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