Commit f4d7afd2 authored by serg@serg.mylan's avatar serg@serg.mylan

multiple keycache fixes

parent cf10caef
......@@ -80,8 +80,11 @@ int main(int argc,char *argv[])
if (argc < 2)
usage();
init_key_cache(dflt_keycache,MI_KEY_BLOCK_LENGTH,USE_BUFFER_INIT,0);
if (!(info=mi_open(argv[0],2,HA_OPEN_ABORT_IF_LOCKED)))
goto err;
VOID(mi_extra(info, HA_EXTRA_SET_KEY_CACHE, dflt_keycache));
inx=atoi(argv[1]);
*buf2=0;
......
......@@ -794,6 +794,7 @@ static int myisamchk(MI_CHECK *param, my_string filename)
share->tot_locks-= share->r_locks;
share->r_locks=0;
raid_chunks=share->base.raid_chunks;
VOID(mi_extra(info, HA_EXTRA_SET_KEY_CACHE, dflt_keycache));
/*
Skip the checking of the file if:
......
......@@ -34,8 +34,8 @@ Full-text indexes are called collections
Only MyISAM tables support collections
select * from t1 where MATCH(a,b) AGAINST ("indexes collections" WITH QUERY EXPANSION);
a b
Only MyISAM tables support collections
Full-text indexes are called collections
Only MyISAM tables support collections
MySQL has now support for full-text search
explain select * from t1 where MATCH(a,b) AGAINST ("collections");
id select_type table type possible_keys key key_len ref rows Extra
......
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