mirror of
https://github.com/postgres/postgres.git
synced 2026-02-21 17:00:40 -05:00
Initialize wal_level in the initial checkpoint record.
As per Coverity and Tom Lane, commit402b586d0(back-patched to v17 as2b5819e2b) forgot to initialize this new structure member in this code path.
This commit is contained in:
parent
6c8d2ea7a5
commit
e7dabbcebd
1 changed files with 1 additions and 0 deletions
|
|
@ -5045,6 +5045,7 @@ BootStrapXLOG(void)
|
|||
checkPoint.ThisTimeLineID = BootstrapTimeLineID;
|
||||
checkPoint.PrevTimeLineID = BootstrapTimeLineID;
|
||||
checkPoint.fullPageWrites = fullPageWrites;
|
||||
checkPoint.wal_level = wal_level;
|
||||
checkPoint.nextXid =
|
||||
FullTransactionIdFromEpochAndXid(0, FirstNormalTransactionId);
|
||||
checkPoint.nextOid = FirstGenbkiObjectId;
|
||||
|
|
|
|||
Loading…
Reference in a new issue