[CP] bug fix: core dumps during the SQL audit logging stage.

This commit is contained in:
GongYusen
2024-06-17 12:54:16 +00:00
committed by ob-robot
parent 1756434624
commit 9af8acc82a
8 changed files with 92 additions and 73 deletions

View File

@ -1160,7 +1160,7 @@ int ObSql::do_add_ps_cache(const PsCacheInfoCtx &info_ctx,
ObPsStmtId inner_stmt_id = ps_stmt_item->get_ps_stmt_id();
ps_cache->deref_stmt_info(inner_stmt_id); //需要决定是否摘除
}
ps_stmt_item->dec_ref_count_check_erase();
ps_stmt_item->dec_ref_count();
}
}
}
@ -1903,7 +1903,7 @@ int ObSql::handle_ps_prepare(const ObString &stmt,
|| need_do_real_prepare
|| duplicate_prepare) {
if (NULL != stmt_item) {
stmt_item->dec_ref_count_check_erase();
stmt_item->dec_ref_count();
}
if (NULL != stmt_info) {
ps_cache->deref_stmt_info(inner_stmt_id); //需要决定是否摘除