summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-05-04 14:20:14 +0300
committerMonty <monty@mariadb.org>2020-05-23 12:29:10 +0300
commitd1d472646d578608791dcd33c13ca6b2472e31b2 (patch)
treeaf65d684a565414beb5ca0f8fad79aa03adefdd3 /sql/rpl_rli.cc
parent7ae812cf2c904b5c070bccd91131f9fc16649bc4 (diff)
downloadmariadb-git-d1d472646d578608791dcd33c13ca6b2472e31b2.tar.gz
Change THD->transaction to a pointer to enable multiple transactions
All changes (except one) is of type thd->transaction. -> thd->transaction-> thd->transaction points by default to 'thd->default_transaction' This allows us to 'easily' have multiple active transactions for a THD object, like when reading data from the mysql.proc table
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r--sql/rpl_rli.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc
index 1a0147f7d8d..fbda0f57f74 100644
--- a/sql/rpl_rli.cc
+++ b/sql/rpl_rli.cc
@@ -2232,7 +2232,7 @@ void rpl_group_info::cleanup_context(THD *thd, bool error)
trans_rollback above does not rollback XA transactions
(todo/fixme consider to do so.
*/
- if (thd->transaction.xid_state.is_explicit_XA())
+ if (thd->transaction->xid_state.is_explicit_XA())
xa_trans_force_rollback(thd);
thd->mdl_context.release_transactional_locks();