This file is indexed.

/usr/lib/mysql-testsuite/r/myisam_debug.result is in mysql-testsuite-5.6 5.6.16-1~exp1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
#
# BUG#40827 - Killing insert-select to MyISAM can cause table corruption
#
CREATE TABLE `t1` (
`id` BIGINT(20) ,
`id1` BIGINT(20) AUTO_INCREMENT,
KEY(id1), KEY(id)
) ENGINE=MyISAM;
CREATE TABLE `t2` (
`id` BIGINT(20) ,
`id1` BIGINT(20) AUTO_INCREMENT,
KEY (id1), KEY(id)
) ENGINE=MyISAM;
INSERT INTO t2 (id) VALUES (123);
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
INSERT INTO t2 (id) SELECT id  FROM t2;
# Switch to insert Connection
SET SESSION debug='+d,wait_in_enable_indexes';
# Send insert data
INSERT INTO t1(id) SELECT id  FROM t2;
# Switch to default Connection
# Wait for insert data to reach the debug point
SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE STATE = 'wait_in_enable_indexes' AND 
INFO = "INSERT INTO t1(id) SELECT id  FROM t2" 
INTO @thread_id;
KILL QUERY @thread_id;
CHECK TABLE t1;
Table	Op	Msg_type	Msg_text
test.t1	check	status	OK
DROP TABLE t1,t2;
ERROR HY000: 137 when fixing table