[CP] [FEAT MERGE] SQL MEMLEAK

This commit is contained in:
tushicheng
2024-03-15 03:20:51 +00:00
committed by ob-robot
parent 0487d20e6d
commit 9177cab121
38 changed files with 395 additions and 89 deletions

View File

@ -14,6 +14,7 @@
#include "observer/mysql/obmp_query.h"
#include "lib/allocator/ob_sql_mem_leak_checker.h"
#include "lib/utility/ob_macro_utils.h"
#include "lib/utility/ob_tracepoint.h"
#include "lib/worker.h"
@ -1269,6 +1270,7 @@ OB_INLINE int ObMPQuery::response_result(ObMySQLResultSet &result,
// 通过判断 plan 是否为 null 来确定是 plan 还是 cmd
// 针对 plan 和 cmd 分开处理,逻辑会较为清晰。
if (OB_LIKELY(NULL != result.get_physical_plan())) {
ENABLE_SQL_MEMLEAK_GUARD;
if (need_trans_cb) {
ObAsyncPlanDriver drv(gctx_, ctx_, session, retry_ctrl_, *this);
// NOTE: sql_end_cb必须在drv.response_result()之前初始化好