Bug #42379 | Maria: when copying a table from another instance, CHECK TABLE says it's corrupt | ||
---|---|---|---|
Submitted: | 27 Jan 2009 16:44 | Modified: | 26 May 2010 17:51 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server: Maria storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1-maria | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[27 Jan 2009 16:44]
Guilhem Bichot
[27 Jan 2009 17:59]
Guilhem Bichot
and if instead of CHECK I do "SELECT * from t" I get a warning which is misleading because table does NOT need a repair: mysql> show warnings; -------------- show warnings -------------- +-------+------+--------------------------------------------------------+ | Level | Code | Message | +-------+------+--------------------------------------------------------+ | Error | 1194 | Table 't' is marked as crashed and should be repaired | +-------+------+--------------------------------------------------------+ 1 row in set (0.01 sec)
[27 Jan 2009 18:00]
Guilhem Bichot
in my 'cp' commands, add "/test" after var/master-data.
[27 Jan 2009 20:43]
Guilhem Bichot
The warning for SELECT can be seen in mysql-test/suite/maria/r/maria-autozerofill.result. The error for CHECK can be seen too by applying this patch: === modified file 'mysql-test/suite/maria/t/maria-autozerofill.test' --- mysql-test/suite/maria/t/maria-autozerofill.test 2008-10-01 12:13:39 +0000 +++ mysql-test/suite/maria/t/maria-autozerofill.test 2009-01-27 20:42:19 +0000 @@ -22,6 +22,7 @@ create table t1(a int) engine=maria; insert into t1 values(1); +insert into t1 values(2); flush table t1; # Check that table is not zerofilled, not movable --exec $MARIA_CHK -dv $MYSQLTEST_VARDIR/master-data/mysqltest/t1 >$MYSQLTEST_VARDIR/tmp/mariachk.txt @@ -43,7 +44,7 @@ disable_ps_protocol; # see maria-recover.test replace_regex /Table.*t1/t1/ ; -select * from t1; +check table t1; enable_ps_protocol; flush table t1;