Skip to content

Commit 0403f01

Browse files
committed
MDEV-33136: backport corrections from 10.11+
1 parent 88dfa6b commit 0403f01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mysql-test/suite/galera/r/MDEV-33136.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ connect node_1a,127.0.0.1,root,,test,$NODE_MYPORT_1;
44
connection node_1;
55
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
66
connection node_1a;
7-
TRUNCATE TABLE t1;
7+
RENAME TABLE t1 TO tmp, tmp TO t1;
88
SET SESSION wsrep_retry_autocommit = 0;
99
SET DEBUG_SYNC = 'dict_stats_mdl_acquired SIGNAL may_toi WAIT_FOR bf_abort';
1010
INSERT INTO t1 VALUES (1);

mysql-test/suite/galera/t/MDEV-33136.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
2121

2222
--connection node_1a
23-
TRUNCATE TABLE t1;
24-
# TRUNCATE forces the next statement to re-read statistics from persistent storage,
23+
RENAME TABLE t1 TO tmp, tmp TO t1;
24+
# RENAME forces the next statement to re-read statistics from persistent storage,
2525
# which will acquire MDL locks on the statistics tables in InnoDB.
2626
SET SESSION wsrep_retry_autocommit = 0;
2727
SET DEBUG_SYNC = 'dict_stats_mdl_acquired SIGNAL may_toi WAIT_FOR bf_abort';

0 commit comments

Comments
 (0)