mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
7d991feb75
Test was missing a FLUSH TABLES
22 lines
594 B
Text
22 lines
594 B
Text
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
--source include/have_debug_sync.inc
|
|
--source include/not_embedded.inc
|
|
|
|
FLUSH TABLES;
|
|
LET $datadir= `SELECT @@datadir`;
|
|
|
|
CREATE TABLE t1 (a SERIAL, b INT, c INT, d INT) ENGINE=InnoDB;
|
|
INSERT INTO t1 () VALUES ();
|
|
|
|
--connect (con1,localhost,root,,test)
|
|
SET DEBUG_SYNC='before_rename_table_commit SIGNAL renamed WAIT_FOR ever';
|
|
--send
|
|
RENAME TABLE t1 TO t2;
|
|
--connection default
|
|
SET DEBUG_SYNC='now WAIT_FOR renamed';
|
|
--let $shutdown_timeout=0
|
|
--source include/restart_mysqld.inc
|
|
--disconnect con1
|
|
SELECT * FROM t1;
|
|
DROP TABLE t1;
|