@@ -55,3 +55,31 @@ Table Op Msg_type Msg_text
55
55
test.t1 repair status OK
56
56
USE test;
57
57
DROP TABLE t1;
58
+ CREATE TABLE t1(a CHAR(255), KEY(a));
59
+ SET myisam_sort_buffer_size=4096;
60
+ INSERT INTO t1 VALUES
61
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
62
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
63
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
64
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
65
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
66
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
67
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
68
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
69
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
70
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
71
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
72
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
73
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
74
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
75
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),('0'),
76
+ ('0'),('0'),('0'),('0'),('0'),('0'),('0');
77
+ SET myisam_repair_threads=2;
78
+ REPAIR TABLE t1;
79
+ Table Op Msg_type Msg_text
80
+ test.t1 repair error sort_buffer_size is to small
81
+ test.t1 repair warning Number of rows changed from 0 to 157
82
+ test.t1 repair status OK
83
+ SET myisam_repair_threads=@@global.myisam_repair_threads;
84
+ SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size;
85
+ DROP TABLE t1;
0 commit comments