autocommit trans not rollback when retry for row lock conflict

This commit is contained in:
chinaxing
2024-06-17 20:44:53 +00:00
committed by ob-robot
parent 5444e47b61
commit 328d411dab
5 changed files with 47 additions and 2 deletions

View File

@ -1658,5 +1658,16 @@ int ObSqlTransControl::alloc_branch_id(ObExecContext &exec_ctx, const int64_t co
return ret;
}
int ObSqlTransControl::reset_trans_for_autocommit_lock_conflict(ObExecContext &exec_ctx)
{
int ret = OB_SUCCESS;
ObSQLSessionInfo *session = GET_MY_SESSION(exec_ctx);
ObTxDesc *tx_desc = NULL;
CK (OB_NOT_NULL(session));
CK (OB_NOT_NULL(tx_desc = session->get_tx_desc()));
OZ (tx_desc->clear_state_for_autocommit_retry());
return ret;
}
}/* ns sql*/
}/* ns oceanbase */