Skip to content

Commit 6a6ebb9

Browse files
committed
Initialize wal_level in the initial checkpoint record.
As per Coverity and Tom Lane, commit 402b586 (back-patched to v17 as 2b5819e) forgot to initialize this new structure member in this code path.
1 parent e4326fb commit 6a6ebb9

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5045,6 +5045,7 @@ BootStrapXLOG(void)
50455045
checkPoint.ThisTimeLineID = BootstrapTimeLineID;
50465046
checkPoint.PrevTimeLineID = BootstrapTimeLineID;
50475047
checkPoint.fullPageWrites = fullPageWrites;
5048+
checkPoint.wal_level = wal_level;
50485049
checkPoint.nextXid =
50495050
FullTransactionIdFromEpochAndXid(0, FirstNormalTransactionId);
50505051
checkPoint.nextOid = FirstGenbkiObjectId;

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