From a1a4f21c9e4ad380d2406a508c3a8f72e591a557 Mon Sep 17 00:00:00 2001 From: Rade_He Date: Tue, 12 Dec 2023 16:21:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug=20GUC=E5=8F=82=E6=95=B0=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E5=A4=87=E6=9C=BA=E5=85=B3=E9=97=ADCBM?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B=5F5.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/postmaster/postmaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index b2087749a1..ecae4e551d 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -4010,7 +4010,7 @@ static int ServerLoop(void) * let cbm writer thread exit if enable_cbm_track gus is switched off */ if (!u_sess->attr.attr_storage.enable_cbm_tracking && g_instance.pid_cxt.CBMWriterPID != 0 && - pmState == PM_RUN) { + (pmState == PM_RUN || pmState == PM_HOT_STANDBY || pmState == PM_RECOVERY)) { ereport(LOG, (errmsg("stop cbm writer thread because enable_cbm_tracking is switched off, " "cbm writer thread pid=%lu", -- Gitee