fix sql plan manger memory bug
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
#include "ob_operator_factory.h"
|
||||
#include "sql/engine/ob_exec_context.h"
|
||||
#include "common/ob_smart_call.h"
|
||||
#include "sql/monitor/ob_plan_real_info_manager.h"
|
||||
#include "sql/monitor/ob_sql_plan_manager.h"
|
||||
|
||||
namespace oceanbase
|
||||
{
|
||||
@ -899,7 +899,11 @@ int ObOperator::submit_op_monitor_node()
|
||||
LOG_DEBUG("debug monitor", K(spec_.id_));
|
||||
}
|
||||
}
|
||||
ObPlanRealInfoMgr *plan_info = MTL(ObPlanRealInfoMgr*);
|
||||
ObSqlPlanMgr *sql_plan_mgr = MTL(ObSqlPlanMgr*);
|
||||
ObPlanRealInfoMgr *plan_info = NULL;
|
||||
if (NULL != sql_plan_mgr) {
|
||||
plan_info = sql_plan_mgr->get_plan_real_info_mgr();
|
||||
}
|
||||
if (plan_info && spec_.plan_ && spec_.plan_->need_record_plan_info()) {
|
||||
IGNORE_RETURN plan_info->handle_plan_info(spec_.id_,
|
||||
spec_.plan_->get_sql_id_string(),
|
||||
|
||||
Reference in New Issue
Block a user