Commit 8df6aadd authored by unknown's avatar unknown

myisamchk --sort-records crash on compressed tables fixed.

parent a9a75ed8
...@@ -1408,6 +1408,12 @@ static int mi_sort_records(MI_CHECK *param, ...@@ -1408,6 +1408,12 @@ static int mi_sort_records(MI_CHECK *param,
param->error_printed=0; param->error_printed=0;
DBUG_RETURN(-1); DBUG_RETURN(-1);
} }
if (share->data_file_type == COMPRESSED_RECORD)
{
mi_check_print_error(param,"Can't sort read-only table '%s'", name);
param->error_printed=0;
DBUG_RETURN(-1);
}
if (!(param->testflag & T_SILENT)) if (!(param->testflag & T_SILENT))
{ {
printf("- Sorting records for MyISAM-table '%s'\n",name); printf("- Sorting records for MyISAM-table '%s'\n",name);
......
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