We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9aac09 commit c935622Copy full SHA for c935622
sql/handler.cc
@@ -1957,7 +1957,8 @@ int ha_rollback_trans(THD *thd, bool all)
1957
Thanks to possibility of MDL deadlock rollback request can come even if
1958
transaction hasn't been started in any transactional storage engine.
1959
*/
1960
- if (thd->transaction_rollback_request)
+ if (thd->transaction_rollback_request &&
1961
+ thd->transaction.xid_state.is_explicit_XA())
1962
thd->transaction.xid_state.set_error(thd->get_stmt_da()->sql_errno());
1963
1964
thd->has_waiter= false;
0 commit comments