diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-03-17 19:49:04 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-05-07 16:48:30 +0400 |
commit | 7ed673f35c4b9baf7d343a4ad0d64ed6a9df912a (patch) | |
tree | 17333dfcb07a34abf4e4530f78f257747876743e /storage/spider | |
parent | b97568503640d62987daae6304d39302257ffcbb (diff) | |
download | mariadb-git-7ed673f35c4b9baf7d343a4ad0d64ed6a9df912a.tar.gz |
MDEV-7793 - Race condition between XA COMMIT/ROLLBACK and disconnect
XA COMMIT/ROLLBACK of XA transaction owned by different thread may access
freed memory if that thread disconnects at the same time.
Also concurrent XA COMMIT/ROLLBACK of recovered XA transaction were not
serialized properly.
Diffstat (limited to 'storage/spider')
-rw-r--r-- | storage/spider/spd_trx.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/storage/spider/spd_trx.cc b/storage/spider/spd_trx.cc index 1b02bb8c641..1a0c5191844 100644 --- a/storage/spider/spd_trx.cc +++ b/storage/spider/spd_trx.cc @@ -1872,7 +1872,6 @@ int spider_internal_start_trx( trx->internal_xid_state.xa_state = XA_ACTIVE; trx->internal_xid_state.xid.set(&trx->xid); - trx->internal_xid_state.in_thd = 1; if ((error_num = spider_xa_lock(&trx->internal_xid_state))) { if (error_num == ER_SPIDER_XA_LOCKED_NUM) |