0001-Fix-missing-initialization-of-delayChkptEnd.patch

application/octet-stream

Filename: 0001-Fix-missing-initialization-of-delayChkptEnd.patch
Type: application/octet-stream
Part: 0
Message: Fix missing initialization of delayChkptEnd

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: format-patch
Series: patch 0001
Subject: Fix missing initialization of delayChkptEnd
File+
src/backend/storage/lmgr/proc.c 2 1
From b9351378814173d25a4295ac3d0fb20bfbd08056 Mon Sep 17 00:00:00 2001
From: "suyu.cmj" <mengjuan.cmj@alibaba-inc.com>
Date: Mon, 5 Jun 2023 09:28:17 +0000
Subject: [PATCH] Fix missing initialization of delayChkptEnd

Initialize delayChkptEnd in the InitProcess function to
prevent new backend from using the previous value.
---
 src/backend/storage/lmgr/proc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c
index 55716ccaf5..450f2e0a9c 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -394,7 +394,8 @@ InitProcess(void)
 	MyProc->roleId = InvalidOid;
 	MyProc->tempNamespaceId = InvalidOid;
 	MyProc->isBackgroundWorker = IsBackgroundWorker;
-	MyProc->delayChkpt = 0;
+	MyProc->delayChkpt = false;
+	MyProc->delayChkptEnd = false;
 	MyProc->statusFlags = 0;
 	/* NB -- autovac launcher intentionally does not set IS_AUTOVACUUM */
 	if (IsAutoVacuumWorkerProcess())
-- 
2.19.1.6.gb485710b