1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-17068 mysql system table is marked as crashed and should be repaired after the server crashes or is killed

- Changed ERROR to WARNING for MyISAM/Aria message
  that are warnings in the check utilities.
  This affects for example "client is using or
  hasn't closed the table properly".
- Print "Table is fixed" if check succeded in
  fixing the table.
This commit is contained in:
Monty
2018-08-28 09:42:22 +03:00
parent f451fd8c06
commit 8cc53aded9
11 changed files with 106 additions and 27 deletions

View File

@@ -7593,8 +7593,14 @@ void THD::reset_for_next_command(bool do_clear_error)
DBUG_ASSERT(!in_sub_stmt);
if (likely(do_clear_error))
{
clear_error(1);
/*
The following variable can't be reset in clear_error() as
clear_error() is called during auto_repair of table
*/
error_printed_to_log= 0;
}
free_list= 0;
/*
We also assign stmt_lex in lex_start(), but during bootstrap this