diff options
author | unknown <igor@rurik.mysql.com> | 2003-08-09 11:12:22 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2003-08-09 11:12:22 -0700 |
commit | cbd85f9deb0f407dcb50bd818b20e16aa77e6b2b (patch) | |
tree | ea16bf3e27f2e3cd5852920dd399f64853a919b7 /myisam/mi_search.c | |
parent | af6d20830c3f192f1b617b610d1cc0def535f1fb (diff) | |
download | mariadb-git-cbd85f9deb0f407dcb50bd818b20e16aa77e6b2b.tar.gz |
set_var.cc, mysqld.cc, handler.cc, set_var.h, handler.h:
Added key cache parameters for midpoint insertion strategy
Many files:
Added midpoint insertion strategy for key cache
mi_test2.c:
Added a parameter to resize_key_cache
mysys/mf_keycache.c:
Added midpoint insertion strategy for key cache
myisam/mi_check.c:
Added midpoint insertion strategy for key cache
myisam/mi_page.c:
Added midpoint insertion strategy for key cache
myisam/mi_range.c:
Added midpoint insertion strategy for key cache
myisam/rt_index.c:
Added midpoint insertion strategy for key cache
myisam/rt_split.c:
Added midpoint insertion strategy for key cache
myisam/mi_delete.c:
Added midpoint insertion strategy for key cache
myisam/mi_preload.c:
Added midpoint insertion strategy for key cache
myisam/mi_search.c:
Added midpoint insertion strategy for key cache
myisam/mi_write.c:
Added midpoint insertion strategy for key cache
myisam/rt_key.c:
Added midpoint insertion strategy for key cache
myisam/mi_test2.c:
Added a parameter to resize_key_cache
isam/_page.c:
Added midpoint insertion strategy for key cache
include/my_sys.h:
Added midpoint insertion strategy for key cache
myisam/myisamdef.h:
Added midpoint insertion strategy for key cache
sql/handler.h:
Added key cache parameters for midpoint insertion strategy.
sql/set_var.h:
Added key cache parameters for midpoint insertion strategy.
sql/handler.cc:
Added key cache parameters for midpoint insertion strategy.
sql/mysqld.cc:
Added key cache parameters for midpoint insertion strategy.
sql/set_var.cc:
Added key cache parameters for midpoint insertion strategy.
Diffstat (limited to 'myisam/mi_search.c')
-rw-r--r-- | myisam/mi_search.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/myisam/mi_search.c b/myisam/mi_search.c index 7e8577c0656..c2168d97cfe 100644 --- a/myisam/mi_search.c +++ b/myisam/mi_search.c @@ -76,7 +76,7 @@ int _mi_search(register MI_INFO *info, register MI_KEYDEF *keyinfo, DBUG_RETURN(1); /* Search at upper levels */ } - if (!(buff=_mi_fetch_keypage(info,keyinfo,pos,info->buff, + if (!(buff=_mi_fetch_keypage(info,keyinfo,pos,DFLT_INIT_HITS,info->buff, test(!(nextflag & SEARCH_SAVE_BUFF))))) goto err; DBUG_DUMP("page",(byte*) buff,mi_getint(buff)); @@ -119,7 +119,7 @@ int _mi_search(register MI_INFO *info, register MI_KEYDEF *keyinfo, if (pos != info->last_keypage) { uchar *old_buff=buff; - if (!(buff=_mi_fetch_keypage(info,keyinfo,pos,info->buff, + if (!(buff=_mi_fetch_keypage(info,keyinfo,pos,DFLT_INIT_HITS,info->buff, test(!(nextflag & SEARCH_SAVE_BUFF))))) goto err; keypos=buff+(keypos-old_buff); @@ -1105,7 +1105,7 @@ int _mi_search_next(register MI_INFO *info, register MI_KEYDEF *keyinfo, if (info->buff_used) { if (!_mi_fetch_keypage(info,keyinfo,info->last_search_keypage, - info->buff,0)) + DFLT_INIT_HITS,info->buff,0)) DBUG_RETURN(-1); info->buff_used=0; } @@ -1174,7 +1174,7 @@ int _mi_search_first(register MI_INFO *info, register MI_KEYDEF *keyinfo, do { - if (!_mi_fetch_keypage(info,keyinfo,pos,info->buff,0)) + if (!_mi_fetch_keypage(info,keyinfo,pos,DFLT_INIT_HITS,info->buff,0)) { info->lastpos= HA_OFFSET_ERROR; DBUG_RETURN(-1); @@ -1217,7 +1217,7 @@ int _mi_search_last(register MI_INFO *info, register MI_KEYDEF *keyinfo, buff=info->buff; do { - if (!_mi_fetch_keypage(info,keyinfo,pos,buff,0)) + if (!_mi_fetch_keypage(info,keyinfo,pos,DFLT_INIT_HITS,buff,0)) { info->lastpos= HA_OFFSET_ERROR; DBUG_RETURN(-1); |