1FLUSH TABLES;
2CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
3INSERT INTO t1 VALUES (1),(2);
4connect  wait,localhost,root,,test;
5SET DEBUG_SYNC='before_trx_state_committed_in_memory SIGNAL c WAIT_FOR ever';
6TRUNCATE TABLE t1;
7connection default;
8SET DEBUG_SYNC='now WAIT_FOR c';
9# restart
10disconnect wait;
11SELECT COUNT(*) FROM t1;
12COUNT(*)
130
14TRUNCATE TABLE t1;
15DROP TABLE t1;
16