From 676333a3d5087eb6ed3c626e7863db7334ab3e96 Mon Sep 17 00:00:00 2001 From: lf0 Date: Thu, 24 Mar 2022 23:03:10 +0800 Subject: [PATCH] Fix ps memory leak caused by deallocate prepare --- src/sql/engine/prepare/ob_deallocate_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/engine/prepare/ob_deallocate_executor.cpp b/src/sql/engine/prepare/ob_deallocate_executor.cpp index d0d77d0f55..113291a14a 100644 --- a/src/sql/engine/prepare/ob_deallocate_executor.cpp +++ b/src/sql/engine/prepare/ob_deallocate_executor.cpp @@ -29,8 +29,8 @@ int ObDeallocateExecutor::execute(ObExecContext& ctx, ObDeallocateStmt& stmt) } else { if (OB_FAIL(ctx.get_my_session()->remove_prepare(stmt.get_prepare_name()))) { LOG_WARN("failed to remove prepare", K(stmt.get_prepare_name()), K(ret)); - } else if (OB_FAIL(ctx.get_my_session()->remove_ps_session_info(stmt.get_prepare_id()))) { - LOG_WARN("failed to remove prepare", K(stmt.get_prepare_id()), K(ret)); + } else if (OB_FAIL(ctx.get_my_session()->close_ps_stmt(stmt.get_prepare_id()))) { + LOG_WARN("fail to deallocate ps stmt", K(ret), K(stmt.get_prepare_id())); } else { /*do nothing*/ } } -- GitLab