Commit 0c2107c6 authored by serg@serg.mylan's avatar serg@serg.mylan

minor fixups: more verbose on "no memory" errors - report requested size,...

minor fixups: more verbose on "no memory" errors - report requested size, avoid flushing rec buffer to a file that is closed and deleted already (on got_error=1)
parent 11f70bdf
...@@ -1368,6 +1368,7 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info, ...@@ -1368,6 +1368,7 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
VOID(my_close(new_file,MYF(0))); VOID(my_close(new_file,MYF(0)));
VOID(my_raid_delete(param->temp_filename,info->s->base.raid_chunks, VOID(my_raid_delete(param->temp_filename,info->s->base.raid_chunks,
MYF(MY_WME))); MYF(MY_WME)));
info->rec_cache.file=-1; /* don't flush data to new_file, it's closed */
} }
mi_mark_crashed_on_repair(info); mi_mark_crashed_on_repair(info);
} }
...@@ -2852,8 +2853,8 @@ static int sort_get_next_record(MI_SORT_PARAM *sort_param) ...@@ -2852,8 +2853,8 @@ static int sort_get_next_record(MI_SORT_PARAM *sort_param)
if (!(to=mi_alloc_rec_buff(info,block_info.rec_len, if (!(to=mi_alloc_rec_buff(info,block_info.rec_len,
&(sort_param->rec_buff)))) &(sort_param->rec_buff))))
{ {
mi_check_print_error(param,"Not enough memory for blob at %s", mi_check_print_error(param,"Not enough memory for blob at %s (need %lu)",
llstr(sort_param->start_recpos,llbuff)); llstr(sort_param->start_recpos,llbuff), block_info.rec_len);
DBUG_RETURN(1); DBUG_RETURN(1);
} }
} }
......
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