| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connect node_1a,127.0.0.1,root,,test,$NODE_MYPORT_1; |
| 4 |
connection node_1; |
| 5 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB; |
| 6 |
connection node_1a; |
| 7 |
RENAME TABLE t1 TO tmp, tmp TO t1; |
| 8 |
SET SESSION wsrep_retry_autocommit = 0; |
| 9 |
SET DEBUG_SYNC = 'dict_stats_mdl_acquired SIGNAL may_toi WAIT_FOR bf_abort'; |
| 10 |
INSERT INTO t1 VALUES (1); |
| 11 |
connection node_1; |
| 12 |
SET DEBUG_SYNC = 'now WAIT_FOR may_toi'; |
| 13 |
TRUNCATE TABLE t1; |
| 14 |
connection node_1a; |
| 15 |
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction |
| 16 |
connection node_1; |
| 17 |
SET DEBUG_SYNC = 'RESET'; |
| 18 |
DROP TABLE t1; |
| 19 |
disconnect node_1a; |
| 20 |
disconnect node_2; |
| 21 |
disconnect node_1; |