ha_innodb.cc:

  Try to skip over corrupt records in SELECT if innodb_force_recovery > 0; print more page hex dumps in CHECK TABLE
parent 60499d54
...@@ -250,6 +250,10 @@ convert_error_code_to_mysql( ...@@ -250,6 +250,10 @@ convert_error_code_to_mysql(
} else if (error == (int) DB_TOO_BIG_RECORD) { } else if (error == (int) DB_TOO_BIG_RECORD) {
return(HA_ERR_TO_BIG_ROW); return(HA_ERR_TO_BIG_ROW);
} else if (error == (int) DB_CORRUPTION) {
return(HA_ERR_CRASHED);
} else { } else {
return(-1); // Unknown error return(-1); // Unknown error
} }
...@@ -3874,7 +3878,7 @@ innodb_show_status( ...@@ -3874,7 +3878,7 @@ innodb_show_status(
if (innodb_skip) { if (innodb_skip) {
my_message(ER_NOT_SUPPORTED_YET, my_message(ER_NOT_SUPPORTED_YET,
"Cannot call SHOW INNODB STATUS because skip-innodb is defined", "Cannot call SHOW INNODB STATUS because skip-innodb is defined",
MYF(0)); MYF(0));
DBUG_RETURN(-1); DBUG_RETURN(-1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment