diff options
author | unknown <serg@serg.mylan> | 2003-08-12 15:56:55 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-08-12 15:56:55 +0200 |
commit | b7efbc3fd4a73e88b5a22bef30eb46ca0d61541d (patch) | |
tree | 01240b31dd788b40a87ce19af71672436606e9ac /myisam/myisamchk.c | |
parent | 1301a6c42d7c15b04369145f853440f60808ab8f (diff) | |
download | mariadb-git-b7efbc3fd4a73e88b5a22bef30eb46ca0d61541d.tar.gz |
myisamchk - don't mark table as crashed if --sort-records=<key> failed because of unappropriate key or read-only table
Diffstat (limited to 'myisam/myisamchk.c')
-rw-r--r-- | myisam/myisamchk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index 1a27e9debe8..4fadfd2fc5d 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -1403,20 +1403,20 @@ static int mi_sort_records(MI_CHECK *param, mi_check_print_error(param,"Can't sort table '%s' on key %d; No such key", name,sort_key+1); param->error_printed=0; - DBUG_RETURN(-1); + DBUG_RETURN(0); /* Nothing to do */ } if (keyinfo->flag & HA_FULLTEXT) { mi_check_print_error(param,"Can't sort table '%s' on FULLTEXT key %d", name,sort_key+1); param->error_printed=0; - DBUG_RETURN(-1); + DBUG_RETURN(0); /* Nothing to do */ } 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); + DBUG_RETURN(0); /* Nothing to do */ } if (!(param->testflag & T_SILENT)) { |