EVOLUTION-MANAGER
Edit File: nonflushing_analyze_debug.result
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB PARTITION BY RANGE (a) ( PARTITION p0 VALUES LESS THAN (3), PARTITION p1 VALUES LESS THAN (10)); INSERT INTO t1 VALUES (1), (2), (3), (4); SET DEBUG_SYNC="handler_ha_index_next_end SIGNAL idx_scan_in_progress WAIT_FOR finish_scan"; SELECT * FROM t1; SET DEBUG_SYNC="now WAIT_FOR idx_scan_in_progress"; ANALYZE TABLE t1; Table Op Msg_type Msg_text test.t1 analyze status OK SELECT * FROM t1; a 1 2 3 4 SET DEBUG_SYNC="now SIGNAL finish_scan"; a 1 2 3 4 DROP TABLE t1; CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=TokuDB PARTITION BY RANGE (a) SUBPARTITION BY HASH (A) SUBPARTITIONS 2 ( PARTITION p0 VALUES LESS THAN (3), PARTITION p1 VALUES LESS THAN (10)); INSERT INTO t2 VALUES (1), (2), (3), (4); SET DEBUG_SYNC="handler_ha_index_next_end SIGNAL idx_scan_in_progress WAIT_FOR finish_scan"; SELECT * FROM t2; SET DEBUG_SYNC="now WAIT_FOR idx_scan_in_progress"; ANALYZE TABLE t2; Table Op Msg_type Msg_text test.t2 analyze status OK SELECT * FROM t2; a 2 1 4 3 SET DEBUG_SYNC="now SIGNAL finish_scan"; a 2 1 4 3 DROP TABLE t2;