Commit 1bf25092 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

MDEV-10162: Update repair testcase

parent 2b47832a
...@@ -377,7 +377,7 @@ static my_bool _ma_thr_find_all_keys_exec(MARIA_SORT_PARAM* sort_param) ...@@ -377,7 +377,7 @@ static my_bool _ma_thr_find_all_keys_exec(MARIA_SORT_PARAM* sort_param)
keys < maxbuffer) keys < maxbuffer)
{ {
_ma_check_print_error(sort_param->sort_info->param, _ma_check_print_error(sort_param->sort_info->param,
"aria_sort_buffer_size is too small"); "aria_sort_buffer_size is too small.");
goto err; goto err;
} }
} }
...@@ -407,11 +407,7 @@ static my_bool _ma_thr_find_all_keys_exec(MARIA_SORT_PARAM* sort_param) ...@@ -407,11 +407,7 @@ static my_bool _ma_thr_find_all_keys_exec(MARIA_SORT_PARAM* sort_param)
{ {
/* purecov: begin inspected */ /* purecov: begin inspected */
_ma_check_print_error(sort_param->sort_info->param, _ma_check_print_error(sort_param->sort_info->param,
"aria_sort_buffer_size is too small. Current " "aria_sort_buffer_size is too small.");
"aria_sort_buffer_size: %llu rows: %llu "
"sort_length: %u",
(ulonglong) sort_param->sortbuff_size,
(ulonglong) idx, sort_length);
my_errno= ENOMEM; my_errno= ENOMEM;
goto err; goto err;
/* purecov: end inspected */ /* purecov: end inspected */
......
...@@ -190,7 +190,8 @@ int _create_index_by_sort(MI_SORT_PARAM *info,my_bool no_messages, ...@@ -190,7 +190,8 @@ int _create_index_by_sort(MI_SORT_PARAM *info,my_bool no_messages,
} }
if (memavl < MIN_SORT_BUFFER) if (memavl < MIN_SORT_BUFFER)
{ {
mi_check_print_error(info->sort_info->param,"MyISAM sort buffer too small"); /* purecov: tested */ mi_check_print_error(info->sort_info->param,
"MyISAM sort buffer too small"); /* purecov: tested */
my_errno= ENOMEM; /* purecov: tested */ my_errno= ENOMEM; /* purecov: tested */
goto err; /* purecov: tested */ goto err; /* purecov: tested */
} }
...@@ -331,8 +332,6 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param) ...@@ -331,8 +332,6 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param)
my_bool error= FALSE; my_bool error= FALSE;
if (sort_param->sort_info->got_error) if (sort_param->sort_info->got_error)
error= TRUE;
if (error)
DBUG_RETURN(error); DBUG_RETURN(error);
set_sort_param_read_write(sort_param); set_sort_param_read_write(sort_param);
...@@ -368,9 +367,7 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param) ...@@ -368,9 +367,7 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param)
keys < (uint) maxbuffer) keys < (uint) maxbuffer)
{ {
mi_check_print_error(sort_param->sort_info->param, mi_check_print_error(sort_param->sort_info->param,
"myisam_sort_buffer_size is too small. Current " "myisam_sort_buffer_size is too small");
"myisam_sort_buffer_size: %llu rows: %llu sort_length: %u",
sort_param->sortbuff_size, (ulonglong) idx, sort_length);
DBUG_RETURN(TRUE); DBUG_RETURN(TRUE);
} }
} }
...@@ -398,9 +395,7 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param) ...@@ -398,9 +395,7 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param)
{ {
/* purecov: begin inspected */ /* purecov: begin inspected */
mi_check_print_error(sort_param->sort_info->param, mi_check_print_error(sort_param->sort_info->param,
"myisam_sort_buffer_size is too small. Current " "myisam_sort_buffer_size is too small");
"myisam_sort_buffer_size: %llu rows: %llu sort_length: %u",
sort_param->sortbuff_size, (ulonglong) idx, sort_length);
my_errno= ENOMEM; my_errno= ENOMEM;
goto err; goto err;
/* purecov: end inspected */ /* purecov: end inspected */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment