From a493762bb0aa6fd7ff51e0b2cc956fe784f7a540 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 21 Jul 2003 22:21:07 +0200 Subject: myisamchk --sort-records crash on compressed tables fixed. --- myisam/myisamchk.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'myisam') diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index 17daab67522..882f868e326 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -1408,6 +1408,12 @@ static int mi_sort_records(MI_CHECK *param, param->error_printed=0; 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)) { printf("- Sorting records for MyISAM-table '%s'\n",name); -- cgit v1.2.1