summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r--sql/rpl_rli.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc
index 0d8a5ad490b..45dfedcd582 100644
--- a/sql/rpl_rli.cc
+++ b/sql/rpl_rli.cc
@@ -2234,10 +2234,10 @@ void rpl_group_info::cleanup_context(THD *thd, bool error)
It could be done only after necessarily closing tables which dictates
the following placement.
*/
- XID_STATE *xid_state= &thd->transaction.xid_state;
- if (xid_state->is_explicit_XA())
+ if (thd->transaction.xid_state.is_explicit_XA())
{
xa_trans_force_rollback(thd);
+ attach_native_trx(thd);
}
thd->mdl_context.release_transactional_locks();