--source include/have_innodb.inc --source include/have_debug.inc --source include/have_debug_sync.inc CREATE TABLE t1 (a INT NOT NULL) ENGINE=InnoDB STATS_PERSISTENT=0; connect ddl,localhost,root; SET DEBUG_SYNC='after_trx_committed_in_memory SIGNAL stuck WAIT_FOR ever'; send ALTER TABLE t1 ADD PRIMARY KEY(a); connection default; SET DEBUG_SYNC='now WAIT_FOR stuck'; SET GLOBAL innodb_log_checkpoint_now=ON; --let $shutdown_timeout=0 --source include/restart_mysqld.inc disconnect ddl; SHOW CREATE TABLE t1; SELECT * FROM t1; DROP TABLE t1; --source include/wait_all_purged.inc