| 1 |
call mtr.add_suppression("InnoDB: .*: Page 0 at offset 0 looks corrupted"); |
| 2 |
call mtr.add_suppression("Index for table 'dst' is corrupt; try to repair it"); |
| 3 |
call mtr.add_suppression("Page for tablespace .* is index page with id .* but that index is not found from configuration file"); |
| 4 |
CREATE TABLE src (pk INT PRIMARY KEY, value INT) ENGINE=INNODB; |
| 5 |
INSERT INTO src VALUES (1, 1), (2, 2), (3, 3); |
| 6 |
FLUSH TABLES src FOR EXPORT; |
| 7 |
UNLOCK TABLES; |
| 8 |
DROP TABLE src; |
| 9 |
CREATE TABLE dst (pk INT PRIMARY KEY, value INT) ENGINE=INNODB; |
| 10 |
ALTER TABLE dst DISCARD TABLESPACE; |
| 11 |
ALTER TABLE dst IMPORT TABLESPACE; |
| 12 |
ERROR HY000: Index for table 'dst' is corrupt; try to repair it |
| 13 |
DROP TABLE dst; |