summaryrefslogtreecommitdiff
path: root/sql/xa.h
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-04-18 15:36:06 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-04-25 15:06:40 +0400
commit210855ce5d6803f41d672d75be3334726f52a9df (patch)
tree0a9660f5c97118f4a4813ba7aa53f0833cd6cb94 /sql/xa.h
parentb7fd7ce2863eab91d6a1f72b7473f936a729d94f (diff)
downloadmariadb-git-210855ce5d6803f41d672d75be3334726f52a9df.tar.gz
Move XID_STATE::xid to XID_cache_element
Part of MDEV-7974 - backport fix for mysql bug#12161 (XA and binlog)
Diffstat (limited to 'sql/xa.h')
-rw-r--r--sql/xa.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/xa.h b/sql/xa.h
index 4dd3ad7788a..bc916a6ba12 100644
--- a/sql/xa.h
+++ b/sql/xa.h
@@ -20,8 +20,6 @@
class XID_cache_element;
struct XID_STATE {
- /* For now, this is only used to catch duplicated external xids */
- XID xid; // transaction identifier
XID_cache_element *xid_cache_element;
bool check_has_uncommitted_xa() const;
@@ -34,7 +32,7 @@ struct XID_STATE {
void xid_cache_init(void);
void xid_cache_free(void);
bool xid_cache_insert(XID *xid);
-bool xid_cache_insert(THD *thd, XID_STATE *xid_state);
+bool xid_cache_insert(THD *thd, XID_STATE *xid_state, XID *xid);
void xid_cache_delete(THD *thd, XID_STATE *xid_state);
bool trans_xa_start(THD *thd);