mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Bug #27173: "Enabling keys got errno ..." does not say which table
Warnings may show up in the error log that complain about a table, yet don't tell us which table. Add the database and table names to the message.
This commit is contained in:
parent
395d8751d5
commit
e5ee6a74ff
1 changed files with 4 additions and 4 deletions
|
@ -882,8 +882,8 @@ int ha_myisam::optimize(THD* thd, HA_CHECK_OPT *check_opt)
|
|||
param.sort_buffer_length= check_opt->sort_buffer_size;
|
||||
if ((error= repair(thd,param,1)) && param.retry_repair)
|
||||
{
|
||||
sql_print_warning("Warning: Optimize table got errno %d, retrying",
|
||||
my_errno);
|
||||
sql_print_warning("Warning: Optimize table got errno %d on %s.%s, retrying",
|
||||
my_errno, param.db_name, param.table_name);
|
||||
param.testflag&= ~T_REP_BY_SORT;
|
||||
error= repair(thd,param,1);
|
||||
}
|
||||
|
@ -1273,8 +1273,8 @@ int ha_myisam::enable_indexes(uint mode)
|
|||
param.tmpdir=&mysql_tmpdir_list;
|
||||
if ((error= (repair(thd,param,0) != HA_ADMIN_OK)) && param.retry_repair)
|
||||
{
|
||||
sql_print_warning("Warning: Enabling keys got errno %d, retrying",
|
||||
my_errno);
|
||||
sql_print_warning("Warning: Enabling keys got errno %d on %s.%s, retrying",
|
||||
my_errno, param.db_name, param.table_name);
|
||||
param.testflag&= ~(T_REP_BY_SORT | T_QUICK);
|
||||
error= (repair(thd,param,0) != HA_ADMIN_OK);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue