!6731 [bugfix]修复因添加断言导致的异常core的问题

Merge pull request !6731 from songlinxuan/11_27
This commit is contained in:
opengauss_bot
2024-11-27 02:38:29 +00:00
committed by Gitee

View File

@ -556,8 +556,6 @@ void PgStatCMAThreadStatus()
pid, callStack.data)));
}
}
/* It is abnormal that CM Agent proc List is full. */
Assert(allCMProcNum < NUM_CMAGENT_PROCS);
FreeStringInfo(&callStack);
}
@ -800,8 +798,6 @@ void InitProcess(void)
int rc = sprintf_s(cmaConnNumInfo, CONNINFOLEN, "All CMA proc [%d], uses[%d];",
NUM_CMAGENT_PROCS, g_instance.conn_cxt.CurCMAProcCount);
securec_check_ss(rc, "\0", "\0");
/* It is abnormal that CM Agent proc List is full. */
Assert(g_instance.conn_cxt.CurCMAProcCount < NUM_CMAGENT_PROCS);
}
ereport(FATAL,