1CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
2INSERT INTO t1 VALUES (1), (2), (3);
3SET DEBUG_SYNC="handler_ha_index_next_end SIGNAL idx_scan_in_progress WAIT_FOR finish_scan";
4SELECT * FROM t1;
5SET DEBUG_SYNC="now WAIT_FOR idx_scan_in_progress";
6ANALYZE TABLE t1;
7Table	Op	Msg_type	Msg_text
8test.t1	analyze	status	OK
9SELECT * FROM t1;
10a
111
122
133
14SET DEBUG_SYNC="now SIGNAL finish_scan";
15a
161
172
183
19DROP TABLE t1;
20