Change the ap_mini_task_mgr memory allocator from TCFactory to op_reclaim_alloc

This commit is contained in:
leslieyuchen
2021-10-14 16:49:18 +08:00
committed by wangzelin.wzl
parent 28e32c861b
commit 4a67d3f351
4 changed files with 13 additions and 34 deletions

View File

@ -22,8 +22,6 @@
namespace oceanbase {
using namespace common;
namespace sql {
REGISTER_CREATOR(ObAPMiniTaskMgrGFactory, ObAPMiniTaskMgr, ObAPMiniTaskMgr, 0);
int ObAPMiniTaskMgr::save_task_result(
const ObAddr& task_addr, int64_t task_id, int32_t ret_code, const ObMiniTaskResult& result)
{
@ -87,8 +85,7 @@ int ObAPMiniTaskMgr::init(ObSQLSessionInfo& session, ObExecutorRpcImpl* exec_rpc
void ObAPMiniTaskMgr::reset()
{
int ret = OB_SUCCESS;
ObDLinkBase<ObAPMiniTaskMgr>::reset();
void* p = NULL;
void *p = NULL;
while (OB_SUCC(finish_queue_.pop(p, 0))) {
if (p != NULL) {
ObMiniTaskEvent* task_event = static_cast<ObMiniTaskEvent*>(p);