diff options
author | serg@serg.mylan <> | 2003-07-21 22:21:07 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2003-07-21 22:21:07 +0200 |
commit | 7a646f305c2259b812588a6131de50a57cf5d083 (patch) | |
tree | cfb04fb29a79a19a7fa0baa53860e0364c24fc90 | |
parent | 716e91eecb157dc48f17a48ef7258c465798d4c8 (diff) | |
download | mariadb-git-7a646f305c2259b812588a6131de50a57cf5d083.tar.gz |
myisamchk --sort-records crash on compressed tables fixed.
-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); |