From 48ea337dfce49400584f749bdd267171bb4a53e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E6=96=87=E5=81=A5?= Date: Mon, 12 Aug 2024 15:49:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug=20#I8NPJP=20GUC=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BD=BF=E5=A4=87=E6=9C=BA=E5=85=B3=E9=97=AD?= =?UTF-8?q?CBM=E7=BA=BF=E7=A8=8B?= 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 c1ce23ad0..70ecff5ae 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -4269,7 +4269,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",