diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-03-12 14:48:53 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-03-12 15:11:15 +0200 |
commit | e0792e7603e17169d38c0d8e4556744250f2813e (patch) | |
tree | e6fe001024f79f7d06bdfa50143e435c4bef32e8 /mysql-test/t/xa.test | |
parent | 88a9d4ab42d370dedc9b1d90c75bee53fd8fb8c0 (diff) | |
parent | 3a93ec53c1efdb511721fdb9e3bef9c3cf3bf675 (diff) | |
download | mariadb-git-e0792e7603e17169d38c0d8e4556744250f2813e.tar.gz |
Merge 10.2 into bb-10.2-ext
Diffstat (limited to 'mysql-test/t/xa.test')
-rw-r--r-- | mysql-test/t/xa.test | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/mysql-test/t/xa.test b/mysql-test/t/xa.test index 736d0c0de29..9a8aa8673ea 100644 --- a/mysql-test/t/xa.test +++ b/mysql-test/t/xa.test @@ -441,6 +441,42 @@ connection default; DROP TABLE t1, t2; disconnect con2; -# Wait till all disconnects are completed + +# +# MDEV 15217 Assertion `thd->transaction.xid_state.xid.is_null()' failed in trans_xa_start. +# +CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=InnoDB; +CREATE TABLE t2 (pk INT PRIMARY KEY) ENGINE=InnoDB; +INSERT INTO t2 VALUES (1),(2); +CREATE TABLE t3 (i INT) ENGINE=InnoDB; + +XA BEGIN 'xid1'; +REPLACE INTO t1 SELECT * FROM t2; + +--connect (con1,localhost,root,,test) +XA BEGIN 'xid2'; +--send +INSERT INTO t1 SELECT * FROM t2; + +--connection default +REPLACE INTO t2 SELECT * FROM t2; + +--connection con1 +--error ER_LOCK_DEADLOCK +--reap +--disconnect con1 + +--connect (con2,localhost,root,,test) +INSERT INTO t3 VALUES (1); +XA BEGIN 'xid3'; + + +#Cleanup +--disconnect con2 +--connection default +XA END 'xid1'; +XA ROLLBACK 'xid1'; +DROP TABLE t1, t2, t3; + --source include/wait_until_count_sessions.inc |