mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
if XA PREPARE transactions hold explicit locks. innobase_shutdown_for_mysql(): Call trx_sys_close() before lock_sys_close() (and dict_close()) so that trx_free_prepared() will see all locks intact. RB: 8561 Reviewed-by: Vasil Dimov <vasil.dimov@oracle.com>
18 lines
352 B
Plaintext
18 lines
352 B
Plaintext
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
XA START 'x';
|
|
UPDATE t1 set a=2;
|
|
XA END 'x';
|
|
XA PREPARE 'x';
|
|
call mtr.add_suppression("Found 1 prepared XA transactions");
|
|
SELECT * FROM t1 LOCK IN SHARE MODE;
|
|
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
SELECT * FROM t1;
|
|
a
|
|
2
|
|
XA ROLLBACK 'x';
|
|
SELECT * FROM t1;
|
|
a
|
|
1
|
|
DROP TABLE t1;
|