diff options
author | unknown <monty@donna.mysql.com> | 2000-10-17 05:29:56 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2000-10-17 05:29:56 +0300 |
commit | 08bb74b631c5b405b0a6cad155f6abc06a5fbf51 (patch) | |
tree | b1301e0cd3ae889563b5899a0126e60d45721835 /sql/sql_base.cc | |
parent | 6842cd1c059c53c44b8342e73ee031bf0a345b13 (diff) | |
download | mariadb-git-08bb74b631c5b405b0a6cad155f6abc06a5fbf51.tar.gz |
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
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index a6b563046c7..584bacc237c 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -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; |