Debian Codegraph @

mysql-test/suite/innodb/t/alter_rename_files.test

raw
1 --source include/have_debug.inc
2 --source include/have_debug_sync.inc
3 --source include/count_sessions.inc
4
5 CREATE TABLE t1 (x INT NOT NULL UNIQUE KEY) ENGINE=InnoDB;
6 INSERT INTO t1 VALUES(5);
7
8 SET GLOBAL innodb_log_checkpoint_now=TRUE;
9
10 # Start an ALTER TABLE and stop it before renaming the files
11 SET DEBUG_SYNC='commit_cache_rebuild SIGNAL ready WAIT_FOR finish';
12
13 --send ALTER TABLE t1 ADD PRIMARY KEY(x)
14
15 connect (con1,localhost,root,,);
16
17 SET DEBUG_SYNC='now WAIT_FOR ready';
18
19 SET GLOBAL innodb_log_checkpoint_now=TRUE;
20
21 SET DEBUG_SYNC='now SIGNAL finish';
22
23 disconnect con1;
24 connection default;
25 reap;
26 SHOW CREATE TABLE t1;
27 DROP TABLE t1;
28 SET DEBUG_SYNC='RESET';
29
30 --source include/wait_until_count_sessions.inc