Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1
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)