summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r--myisam/mi_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index 20c9f9660d1..5b21e9b6ef2 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -384,6 +384,8 @@ int chk_key(MI_CHECK *param, register MI_INFO *info)
bzero((char*) &param->unique_count,sizeof(param->unique_count));
if ((!(param->testflag & T_SILENT)))
printf ("- check data record references index: %d\n",key+1);
+ if (keyinfo->flag & HA_FULLTEXT)
+ full_text_keys++;
if (share->state.key_root[key] == HA_OFFSET_ERROR &&
(info->state->records == 0 || keyinfo->flag & HA_FULLTEXT))
continue;
@@ -434,8 +436,6 @@ int chk_key(MI_CHECK *param, register MI_INFO *info)
continue;
}
}
- else
- full_text_keys++;
if ((uint) share->base.auto_key -1 == key)
{
/* Check that auto_increment key is bigger than max key value */