!4831 修复按需回放与enable_cbm_tracking参数同时开启启动时core问题

Merge pull request !4831 from 刘展峰/cbm
This commit is contained in:
opengauss_bot
2024-02-05 11:05:55 +00:00
committed by Gitee

View File

@ -9911,7 +9911,7 @@ void StartupXLOG(void)
* At this moment, checkpoint would not happen so it is safe to do the desicion
* without holding the control file lock.
*/
if (u_sess->attr.attr_storage.enable_cbm_tracking) {
if (u_sess->attr.attr_storage.enable_cbm_tracking && g_instance.pid_cxt.CBMWriterPID == 0) {
CBMTrackInit(true, checkPoint.redo);
t_thrd.cbm_cxt.XlogCbmSys->needReset = false;
} else {