diff options
author | unknown <serg@serg.mylan> | 2003-07-21 22:21:07 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-07-21 22:21:07 +0200 |
commit | a493762bb0aa6fd7ff51e0b2cc956fe784f7a540 (patch) | |
tree | cfb04fb29a79a19a7fa0baa53860e0364c24fc90 /myisam | |
parent | 30ee158d2f40b6b9e18955970ccee4cba664d21b (diff) | |
download | mariadb-git-a493762bb0aa6fd7ff51e0b2cc956fe784f7a540.tar.gz |
myisamchk --sort-records crash on compressed tables fixed.
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/myisamchk.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |