mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Fix mutex handling in SHOW_VARIABLES (key_buffer_size was not properly protected)
Changed some non fatal myisamchk error messages to warnings myisam/myisamchk.c: Change error -> warning sql/handler.cc: Add mutex around keybuff_size usage sql/mysql_priv.h: Indentation update sql/set_var.cc: Add mutex around longlong variable usage sql/sql_parse.cc: Fix mutex handling in SHOW_VARIABLES sql/sql_show.cc: Fix mutex handling in SHOW_VARIABLES
This commit is contained in:
parent
9ac61d15fa
commit
0eaf4d8d7e
6 changed files with 49 additions and 19 deletions
|
|
@ -1400,21 +1400,22 @@ static int mi_sort_records(MI_CHECK *param,
|
|||
|
||||
if (!(((ulonglong) 1 << sort_key) & share->state.key_map))
|
||||
{
|
||||
mi_check_print_error(param,"Can't sort table '%s' on key %d; No such key",
|
||||
mi_check_print_warning(param,
|
||||
"Can't sort table '%s' on key %d; No such key",
|
||||
name,sort_key+1);
|
||||
param->error_printed=0;
|
||||
DBUG_RETURN(0); /* Nothing to do */
|
||||
}
|
||||
if (keyinfo->flag & HA_FULLTEXT)
|
||||
{
|
||||
mi_check_print_error(param,"Can't sort table '%s' on FULLTEXT key %d",
|
||||
name,sort_key+1);
|
||||
mi_check_print_warning(param,"Can't sort table '%s' on FULLTEXT key %d",
|
||||
name,sort_key+1);
|
||||
param->error_printed=0;
|
||||
DBUG_RETURN(0); /* Nothing to do */
|
||||
}
|
||||
if (share->data_file_type == COMPRESSED_RECORD)
|
||||
{
|
||||
mi_check_print_error(param,"Can't sort read-only table '%s'", name);
|
||||
mi_check_print_warning(param,"Can't sort read-only table '%s'", name);
|
||||
param->error_printed=0;
|
||||
DBUG_RETURN(0); /* Nothing to do */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue