| 1 |
######### |
| 2 |
# SETUP # |
| 3 |
######### |
| 4 |
# Stop the running the server |
| 5 |
# Copy and unzip the datadir. |
| 6 |
# Restart the server against the unzipped datadir |
| 7 |
# restart: --datadir=DATADIR --innodb-page-size=16k --log-error=LOG_FILE |
| 8 |
SHOW CREATE TABLE t1; |
| 9 |
Table Create Table |
| 10 |
t1 CREATE TABLE `t1` ( |
| 11 |
`c1` varchar(10) DEFAULT NULL, |
| 12 |
`c2` varchar(10) DEFAULT 'def_c2', |
| 13 |
`c3` varchar(10) DEFAULT 'def_c3' |
| 14 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=COMPACT |
| 15 |
CHECK TABLE t1; |
| 16 |
Table Op Msg_type Msg_text |
| 17 |
test.t1 check Warning InnoDB: The B-tree of index GEN_CLUST_INDEX is corrupted. |
| 18 |
test.t1 check error Corrupt |
| 19 |
# Expect found |
| 20 |
Pattern "Record has both instant and version bit set" found |
| 21 |
########### |
| 22 |
# CLEANUP # |
| 23 |
########### |
| 24 |
# Shutdown server |
| 25 |
# Remove copied files |
| 26 |
# Restarting server to restore server state |
| 27 |
# restart |