Commit db0c3c20 authored by unknown's avatar unknown

fixed a bug that made 4.0 MYI+FT files unreadable in 4.1

parent 6732f7a9
...@@ -335,7 +335,6 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -335,7 +335,6 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
{ /* 4.0 compatibility code, to be removed in 5.0 */ { /* 4.0 compatibility code, to be removed in 5.0 */
share->keyinfo[i].seg=pos-FT_SEGS; share->keyinfo[i].seg=pos-FT_SEGS;
share->keyinfo[i].keysegs-=FT_SEGS; share->keyinfo[i].keysegs-=FT_SEGS;
share->state.header.fulltext_keys++;
} }
else else
{ {
......
...@@ -876,7 +876,7 @@ static int myisamchk(MI_CHECK *param, my_string filename) ...@@ -876,7 +876,7 @@ static int myisamchk(MI_CHECK *param, my_string filename)
} }
else else
{ {
if (share->state.header.fulltext_keys && !stopwords_inited++) if (!stopwords_inited++)
ft_init_stopwords(); ft_init_stopwords();
if (!(param->testflag & T_READONLY)) if (!(param->testflag & T_READONLY))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment