| 1 |
--- suite/storage_engine/repair_table.result |
| 2 |
+++ suite/storage_engine/repair_table.reject |
| 3 |
@@ -4,56 +4,50 @@ |
| 4 |
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 5 |
REPAIR TABLE t1; |
| 6 |
Table Op Msg_type Msg_text |
| 7 |
-test.t1 repair status OK |
| 8 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 9 |
INSERT INTO t1 (a,b) VALUES (3,'c'); |
| 10 |
INSERT INTO t2 (a,b) VALUES (4,'d'); |
| 11 |
REPAIR NO_WRITE_TO_BINLOG TABLE t1, t2; |
| 12 |
Table Op Msg_type Msg_text |
| 13 |
-test.t1 repair status OK |
| 14 |
-test.t2 repair status OK |
| 15 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 16 |
+test.t2 repair note The storage engine for the table doesn't support repair |
| 17 |
INSERT INTO t2 (a,b) VALUES (5,'e'),(6,'f'); |
| 18 |
REPAIR LOCAL TABLE t2; |
| 19 |
Table Op Msg_type Msg_text |
| 20 |
-test.t2 repair status OK |
| 21 |
+test.t2 repair note The storage engine for the table doesn't support repair |
| 22 |
INSERT INTO t1 (a,b) VALUES (7,'g'),(8,'h'); |
| 23 |
INSERT INTO t2 (a,b) VALUES (9,'i'); |
| 24 |
REPAIR LOCAL TABLE t2, t1 EXTENDED; |
| 25 |
Table Op Msg_type Msg_text |
| 26 |
-test.t2 repair status OK |
| 27 |
-test.t1 repair status OK |
| 28 |
+test.t2 repair note The storage engine for the table doesn't support repair |
| 29 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 30 |
INSERT INTO t1 (a,b) VALUES (10,'j'); |
| 31 |
INSERT INTO t2 (a,b) VALUES (11,'k'); |
| 32 |
REPAIR TABLE t1, t2 QUICK USE_FRM; |
| 33 |
Table Op Msg_type Msg_text |
| 34 |
-test.t1 repair warning Number of rows changed from 0 to 6 |
| 35 |
-test.t1 repair status OK |
| 36 |
-test.t2 repair warning Number of rows changed from 0 to 5 |
| 37 |
-test.t2 repair status OK |
| 38 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 39 |
+test.t2 repair note The storage engine for the table doesn't support repair |
| 40 |
INSERT INTO t1 (a,b) VALUES (12,'l'); |
| 41 |
INSERT INTO t2 (a,b) VALUES (13,'m'); |
| 42 |
REPAIR NO_WRITE_TO_BINLOG TABLE t1, t2 QUICK EXTENDED USE_FRM; |
| 43 |
Table Op Msg_type Msg_text |
| 44 |
-test.t1 repair warning Number of rows changed from 0 to 7 |
| 45 |
-test.t1 repair status OK |
| 46 |
-test.t2 repair warning Number of rows changed from 0 to 6 |
| 47 |
-test.t2 repair status OK |
| 48 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 49 |
+test.t2 repair note The storage engine for the table doesn't support repair |
| 50 |
FLUSH TABLE t1; |
| 51 |
INSERT INTO t1 (a,b) VALUES (14,'n'); |
| 52 |
-ERROR HY000: Incorrect file format 't1' |
| 53 |
+ERROR HY000: Table 't1' is read only |
| 54 |
# Statement ended with one of expected results (0,130,ER_FAILED_READ_FROM_PAR_FILE,ER_OPEN_AS_READONLY). |
| 55 |
# If you got a difference in error message, just add it to rdiff file |
| 56 |
CHECK TABLE t1; |
| 57 |
Table Op Msg_type Msg_text |
| 58 |
-test.t1 check Error Incorrect file format 't1' |
| 59 |
-test.t1 check error Corrupt |
| 60 |
+test.t1 check status OK |
| 61 |
SELECT a,b FROM t1; |
| 62 |
-ERROR HY000: Incorrect file format 't1' |
| 63 |
+a b |
| 64 |
# Statement ended with one of expected results (0,130,ER_FAILED_READ_FROM_PAR_FILE,ER_OPEN_AS_READONLY). |
| 65 |
# If you got a difference in error message, just add it to rdiff file |
| 66 |
REPAIR TABLE t1; |
| 67 |
Table Op Msg_type Msg_text |
| 68 |
-test.t1 repair Error Incorrect file format 't1' |
| 69 |
-test.t1 repair error Corrupt |
| 70 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 71 |
DROP TABLE t1, t2; |
| 72 |
call mtr.add_suppression("Got an error from thread_id=.*"); |
| 73 |
call mtr.add_suppression("MySQL thread id .*, query id .* localhost.*root Checking table"); |
| 74 |
@@ -63,46 +57,33 @@ |
| 75 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 76 |
REPAIR TABLE t1; |
| 77 |
Table Op Msg_type Msg_text |
| 78 |
-test.t1 repair status OK |
| 79 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 80 |
INSERT INTO t1 (a,b) VALUES (7,'g'),(8,'h'); |
| 81 |
REPAIR TABLE t1 EXTENDED; |
| 82 |
Table Op Msg_type Msg_text |
| 83 |
-test.t1 repair status OK |
| 84 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 85 |
INSERT INTO t1 (a,b) VALUES (10,'j'); |
| 86 |
REPAIR TABLE t1 USE_FRM; |
| 87 |
Table Op Msg_type Msg_text |
| 88 |
-test.t1 repair warning Number of rows changed from 0 to 3 |
| 89 |
-test.t1 repair status OK |
| 90 |
+test.t1 repair note The storage engine for the table doesn't support repair |
| 91 |
db.opt |
| 92 |
-t1.MYD |
| 93 |
-t1.MYI |
| 94 |
+t1.MRG |
| 95 |
t1.frm |
| 96 |
INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o'); |
| 97 |
# Statement ended with one of expected results (0,144). |
| 98 |
# If you got a difference in error message, just add it to rdiff file |
| 99 |
FLUSH TABLE t1; |
| 100 |
-Restoring <DATADIR>/test/t1.MYD |
| 101 |
+Restoring <DATADIR>/test/t1.MRG |
| 102 |
CHECK TABLE t1; |
| 103 |
Table Op Msg_type Msg_text |
| 104 |
-test.t1 check error Size of datafile is: 39 Should be: 65 |
| 105 |
-test.t1 check error Corrupt |
| 106 |
+test.t1 check status OK |
| 107 |
SELECT a,b FROM t1; |
| 108 |
-ERROR HY000: Index for table 't1' is corrupt; try to repair it |
| 109 |
-# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144). |
| 110 |
-# If you got a difference in error message, just add it to rdiff file |
| 111 |
-INSERT INTO t1 (a,b) VALUES (14,'n'),(15,'o'); |
| 112 |
-ERROR HY000: Table './test/t1' is marked as crashed and last (automatic?) repair failed |
| 113 |
-# Statement ended with one of expected results (0,144). |
| 114 |
-# If you got a difference in error message, just add it to rdiff file |
| 115 |
-FLUSH TABLE t1; |
| 116 |
-Restoring <DATADIR>/test/t1.MYI |
| 117 |
-CHECK TABLE t1; |
| 118 |
-Table Op Msg_type Msg_text |
| 119 |
-test.t1 check warning Table is marked as crashed and last repair failed |
| 120 |
-test.t1 check error Size of datafile is: 39 Should be: 65 |
| 121 |
-test.t1 check error Corrupt |
| 122 |
-SELECT a,b FROM t1; |
| 123 |
-ERROR HY000: Table './test/t1' is marked as crashed and last (automatic?) repair failed |
| 124 |
+a b |
| 125 |
+7 g |
| 126 |
+8 h |
| 127 |
+10 j |
| 128 |
+14 n |
| 129 |
+15 o |
| 130 |
# Statement ended with one of expected results (0,ER_NOT_KEYFILE,144). |
| 131 |
# If you got a difference in error message, just add it to rdiff file |
| 132 |
DROP TABLE t1; |