aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-07-22 15:32:43 -0400
committerRobert Haas <rhaas@postgresql.org>2024-07-22 15:32:43 -0400
commit6a6ebb92b0d4c0787797538ec3ff342fd8e7c1ed (patch)
tree5ff40955d22fc5dadefc458465482ef6750648da /src/backend/access/transam/xlog.c
parente4326fbc60c44aab6df5849d3d67a0cba4c71cf2 (diff)
downloadpostgresql-6a6ebb92b0d4c0787797538ec3ff342fd8e7c1ed.tar.gz
postgresql-6a6ebb92b0d4c0787797538ec3ff342fd8e7c1ed.zip
Initialize wal_level in the initial checkpoint record.
As per Coverity and Tom Lane, commit 402b586d0 (back-patched to v17 as 2b5819e2b) forgot to initialize this new structure member in this code path.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 636be5ca4da..d70ba67bac9 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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;