fix bug: plan stat incorrect when some error happened during query processing

This commit is contained in:
GongYusen
2024-01-11 03:48:27 +00:00
committed by ob-robot
parent ccd9f8e66a
commit 5db554a63f
3 changed files with 4 additions and 5 deletions

View File

@ -1366,8 +1366,7 @@ int ObMPStmtExecute::do_process(ObSQLSessionInfo &session,
}
//update v$sql statistics
if ((OB_SUCC(ret) || audit_record.is_timeout())
&& session.get_local_ob_enable_plan_cache()
if (session.get_local_ob_enable_plan_cache()
&& !retry_ctrl_.need_retry()
&& !is_ps_cursor()) {
// ps cursor do this in inner open