mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.6' into 10.7
This commit is contained in:
@@ -2288,11 +2288,9 @@ void rpl_group_info::cleanup_context(THD *thd, bool error)
|
||||
|
||||
if (unlikely(error))
|
||||
{
|
||||
/*
|
||||
trans_rollback above does not rollback XA transactions
|
||||
(todo/fixme consider to do so.
|
||||
*/
|
||||
if (thd->transaction->xid_state.is_explicit_XA())
|
||||
// leave alone any XA prepared transactions
|
||||
if (thd->transaction->xid_state.is_explicit_XA() &&
|
||||
thd->transaction->xid_state.get_state_code() != XA_PREPARED)
|
||||
xa_trans_force_rollback(thd);
|
||||
|
||||
thd->release_transactional_locks();
|
||||
|
Reference in New Issue
Block a user