mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.3 into 10.4
In main.index_merge_myisam we remove the test that was added in commita2d24def8c
because it duplicates the test case that was added in commit5af12e4635
.
This commit is contained in:
27
mysql-test/suite/innodb/r/xa_recovery_debug.result
Normal file
27
mysql-test/suite/innodb/r/xa_recovery_debug.result
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Bug#20872655 XA ROLLBACK IS NOT CRASH-SAFE
|
||||
#
|
||||
CREATE TABLE t(a INT PRIMARY KEY, b INT UNIQUE) ENGINE=INNODB;
|
||||
INSERT INTO t SET a=0;
|
||||
connect con1,localhost,root;
|
||||
XA START 'zombie';
|
||||
INSERT INTO t SET a=1;
|
||||
UPDATE t SET b=1 WHERE a=1;
|
||||
SELECT COUNT(*) FROM t;
|
||||
COUNT(*)
|
||||
2
|
||||
XA END 'zombie';
|
||||
XA PREPARE 'zombie';
|
||||
SET DEBUG_SYNC='trx_after_rollback_row SIGNAL s1 WAIT_FOR s2';
|
||||
XA ROLLBACK 'zombie';
|
||||
connection default;
|
||||
SET DEBUG_SYNC='now WAIT_FOR s1';
|
||||
SET GLOBAL innodb_flush_log_at_trx_commit=1;
|
||||
DELETE FROM t LIMIT 1;
|
||||
# restart
|
||||
disconnect con1;
|
||||
XA COMMIT 'zombie';
|
||||
ERROR XAE04: XAER_NOTA: Unknown XID
|
||||
SELECT * FROM t;
|
||||
a b
|
||||
DROP TABLE t;
|
Reference in New Issue
Block a user