[master][tx-route] do not abort tx if txn has explict savepoint or serializable snapshot

This commit is contained in:
chinaxing
2023-02-24 15:46:42 +00:00
committed by ob-robot
parent 0de4d4a41d
commit 52c45c7403
5 changed files with 19 additions and 12 deletions

View File

@ -915,7 +915,7 @@ int ObVariableSetExecutor::process_session_autocommit_hook(ObExecContext &exec_c
LOG_WARN("session is NULL", K(ret));
} else {
auto tx_desc = my_session->get_tx_desc();
bool in_trans = OB_NOT_NULL(tx_desc) && tx_desc->in_tx_or_has_state();
bool in_trans = OB_NOT_NULL(tx_desc) && tx_desc->in_tx_or_has_extra_state();
if (OB_FAIL(my_session->get_autocommit(orig_ac))) {
LOG_WARN("fail to get autocommit", K(ret));
} else if (OB_FAIL(val.get_int(autocommit))) {