!6000 GUC参数无法使备机关闭CBM线程_master

Merge pull request !6000 from 何文健/master
This commit is contained in:
opengauss_bot
2024-08-14 01:32:52 +00:00
committed by Gitee

View File

@ -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",