summaryrefslogtreecommitdiff
path: root/mysql-test/suite/parts/r/percona_nonflushing_analyze_debug.result
blob: 070d5e8d79f8dc10e5fe1ea08140d4c007a20968 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB
PARTITION BY RANGE (a) (
PARTITION p0 VALUES LESS THAN (3),
PARTITION p1 VALUES LESS THAN (10));
INSERT INTO t1 VALUES (1), (2), (3), (4);
connect con1,localhost,root;
SET DEBUG_SYNC="handler_ha_index_next_end SIGNAL idx_scan_in_progress WAIT_FOR finish_scan";
SELECT * FROM t1;
connection default;
SET DEBUG_SYNC="now WAIT_FOR idx_scan_in_progress";
set @tmp=@@use_stat_tables;
set use_stat_tables='preferably_for_queries';
ANALYZE TABLE t1;
Table	Op	Msg_type	Msg_text
test.t1	analyze	status	OK
set use_stat_tables=@tmp;
SELECT * FROM t1;
a
1
2
3
4
SET DEBUG_SYNC="now SIGNAL finish_scan";
connection con1;
a
1
2
3
4
disconnect con1;
connection default;
SET DEBUG_SYNC='reset';
DROP TABLE t1;
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB
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);
connect con1,localhost,root;
SET DEBUG_SYNC="handler_ha_index_next_end SIGNAL idx_scan_in_progress WAIT_FOR finish_scan";
SELECT * FROM t2;
connection default;
SET DEBUG_SYNC="now WAIT_FOR idx_scan_in_progress";
set @tmp=@@use_stat_tables;
set use_stat_tables='preferably_for_queries';
ANALYZE TABLE t2;
Table	Op	Msg_type	Msg_text
test.t2	analyze	status	OK
set use_stat_tables=@tmp;
SELECT * FROM t2;
a
1
2
3
4
SET DEBUG_SYNC="now SIGNAL finish_scan";
connection con1;
a
1
2
3
4
disconnect con1;
connection default;
SET DEBUG_SYNC='reset';
DROP TABLE t2;