mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixes for automatic repair
Docs/manual.texi: Clarifications myisam/mi_check.c: Cleanup myisam/myisamdef.h: Header file fix sql/ha_myisam.cc: Fix for repair sql/sql_base.cc: Fix for repair
This commit is contained in:
@ -1165,6 +1165,10 @@ static int open_unireg_entry(THD *thd, TABLE *entry, const char *db,
|
||||
entry) ||
|
||||
(entry->file->is_crashed() && entry->file->check_and_repair(thd)))
|
||||
{
|
||||
/* Give right error message */
|
||||
thd->net.last_error[0]=0;
|
||||
thd->net.last_errno=0;
|
||||
entry->file->print_error(HA_ERR_CRASHED,MYF(0));
|
||||
sql_print_error("Error: Couldn't repair table: %s.%s",db,name);
|
||||
closefrm(entry);
|
||||
error=1;
|
||||
|
Reference in New Issue
Block a user