if ((param->testflag & (T_FORCE_UNIQUENESS|T_QUICK)) == T_QUICK)
3739
3666
{
3740
3667
mi_check_print_error(param,
3741
3668
"Quick-recover aborted; Run recovery without switch -q or with switch -qq");
3742
DBUG_RETURN(1);
3669
return(1);
3743
3670
}
3744
3671
if (info->s->options & HA_OPTION_COMPRESS_RECORD)
3745
3672
{
3746
3673
mi_check_print_error(param,
3747
3674
"Recover aborted; Can't run standard recovery on compressed tables with errors in data-file. Use switch 'myisamchk --safe-recover' to fix it\n",stderr);;
3748
DBUG_RETURN(1);
3675
return(1);
3749
3676
}
3750
3677
3751
3678
old_file=info->dfile;
3758
3685
{
3759
3686
mi_check_print_error(param,"Can't read record to be removed");
3760
3687
info->dfile=old_file;
3761
DBUG_RETURN(1);
3688
return(1);
3762
3689
}
3763
3690
3764
3691
for (i=0 ; i < sort_info->current_key ; i++)
3768
3695
{
3769
3696
mi_check_print_error(param,"Can't delete key %d from record to be removed",i+1);