only reset tx active_scn to enable recgnize first stmt retry

This commit is contained in:
obdev
2024-02-08 11:07:13 +00:00
committed by ob-robot
parent cfe4eeda1c
commit 9474ff14d4
4 changed files with 23 additions and 24 deletions

View File

@ -1098,7 +1098,9 @@ int ObSqlTransControl::end_stmt(ObExecContext &exec_ctx, const bool rollback)
#else
if (OB_FAIL(ret) || rollback) { print_log = true; }
#endif
if (print_log && OB_NOT_NULL(session)) {
if (print_log
&& OB_NOT_NULL(session)
&& OB_TRY_LOCK_ROW_CONFLICT != exec_ctx.get_errcode()) {
LOG_INFO("end stmt", K(ret),
"plain_select", is_plain_select,
"stmt_type", stmt_type,