summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb_parts/r/nonflushing_analyze_debug.result
blob: 5a7bfb369dffd53953a85c667484213a85fcf755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;