diff options
author | Robert Haas <rhaas@postgresql.org> | 2024-07-22 15:32:43 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2024-07-22 15:34:54 -0400 |
commit | e7dabbcebd445b67a5413d48458b5cf5b4c7930a (patch) | |
tree | 52071b35ff8d07e77b40685cf2d75b1f5873aa12 /src | |
parent | 6c8d2ea7a5fb7f85e5f64994affa33e79c19ddd3 (diff) | |
download | postgresql-e7dabbcebd445b67a5413d48458b5cf5b4c7930a.tar.gz postgresql-e7dabbcebd445b67a5413d48458b5cf5b4c7930a.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')
-rw-r--r-- | src/backend/access/transam/xlog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index a864959296f..bb2685304e4 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; |