1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

multiple keycache fixes

This commit is contained in:
serg@serg.mylan
2003-11-13 14:31:29 +01:00
parent cf10caef22
commit f4d7afd213
3 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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