summaryrefslogtreecommitdiff
path: root/myisam/myisamchk.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-08-12 15:56:55 +0200
committerunknown <serg@serg.mylan>2003-08-12 15:56:55 +0200
commitb7efbc3fd4a73e88b5a22bef30eb46ca0d61541d (patch)
tree01240b31dd788b40a87ce19af71672436606e9ac /myisam/myisamchk.c
parent1301a6c42d7c15b04369145f853440f60808ab8f (diff)
downloadmariadb-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.c6
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))
{