diff options
author | SergeyV@selena. <> | 2005-11-23 18:18:41 +0300 |
---|---|---|
committer | SergeyV@selena. <> | 2005-11-23 18:18:41 +0300 |
commit | e4cfca0758fc2a9128c50305c45d8b89f4efecc2 (patch) | |
tree | f9ea928b82ec56b1452eec4323f6459b725d3bd3 /myisam | |
parent | 43bbd352e3aa4af23f479e33ba80a6dfdeb6774f (diff) | |
download | mariadb-git-e4cfca0758fc2a9128c50305c45d8b89f4efecc2.tar.gz |
Fixes bug #14902. When analysing a table with FT index that contains stopwords
table statistics is not updated, so the next execution of analyze table will
try to update statistics again.
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 6296193d6b0..9ce1dff51af 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -402,7 +402,7 @@ int chk_key(MI_CHECK *param, register MI_INFO *info) full_text_keys++; if (share->state.key_root[key] == HA_OFFSET_ERROR && (info->state->records == 0 || keyinfo->flag & HA_FULLTEXT)) - continue; + goto do_stat; if (!_mi_fetch_keypage(info,keyinfo,share->state.key_root[key], DFLT_INIT_HITS,info->buff,0)) { @@ -498,6 +498,7 @@ int chk_key(MI_CHECK *param, register MI_INFO *info) param->max_level); all_keydata+=param->keydata; all_totaldata+=param->totaldata; key_totlength+=length; +do_stat: if (param->testflag & T_STATISTICS) update_key_parts(keyinfo, rec_per_key_part, param->unique_count, param->stats_method == MI_STATS_METHOD_IGNORE_NULLS? |