summaryrefslogtreecommitdiff
path: root/sql/xa.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.4 into 10.5Marko Mäkelä2019-10-121-2/+2
|\
| * Fix -Wunused-variableMarko Mäkelä2019-10-121-2/+2
| |
* | MDEV-19897 Rename source code variable names from utf8 to utf8mb3Alexander Barkov2019-06-281-2/+2
|/
* trans_xa_detach() frameworkSergey Vojtovich2019-04-251-21/+51
| | | | Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
* Move XID_STATE::xid to XID_cache_elementSergey Vojtovich2019-04-251-77/+77
| | | | Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
* Moved normal transaction xid to implicit_xidSergey Vojtovich2019-04-251-0/+7
| | | | Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
* Move XID_STATE::xa_state to XID_cache_elementSergey Vojtovich2019-04-251-25/+30
| | | | | | Simplified away XA_NOTR, use XID_STATE::is_explicit_XA() instead. Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
* Move XID_state::xa_state handing inside xa.ccSergey Vojtovich2019-04-251-18/+43
| | | | | | | | | | | | | | | | | | | | | | | | Let xid_cache_insert()/xid_cache_delete() handle xa_state. Let session tracker use is_explicit_XA() rather than xa_state != XA_NOTR. Fixed open_tables() to refuse data access in XA_ROLLBACK_ONLY state. Removed dead code from THD::cleanup(). It was supposed to be a reminder, but it got messed up over time. spider_internal_start_trx() is called either with XA_NOTR or XA_ACTIVE, which is guarded by server callers. Thus is_explicit_XA() is acceptable replacement for XA_ACTIVE check (which was likely wrong anyway). Setting xa_state to XA_PREPARED in spider_internal_xa_prepare() isn't meaningful, as this value is never accessed later. It can't be accessed by current thread and it can't be recovered either. It can only be accessed by spider internally, which never happens. Make spider_xa_lock()/spider_xa_unlock() static. Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
* Move XID_STATE::rm_error to XID_cache_elementSergey Vojtovich2019-04-251-15/+18
| | | | | | | | | | | XID_STATE::rm_error is never used by internal 2PC, it is intended to be used by explicit XA only. Also removed redundant xid reset from THD::init_for_queries(). Must've been done already either by THD::transaction constructor or by THD::cleanup(). Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
* Just move, no code changes otherwise.Sergey Vojtovich2019-04-251-0/+797
Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)