[CP] bug fix: core dumps during the SQL audit logging stage.
This commit is contained in:
@ -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); //需要决定是否摘除
|
||||
|
||||
Reference in New Issue
Block a user