summaryrefslogtreecommitdiff
path: root/myisam/mi_search.c
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-11-16 03:58:58 +0200
committermonty@donna.mysql.com <>2000-11-16 03:58:58 +0200
commita9097ca323bf399c5fc45d94a9b121c304f7681e (patch)
tree4b8f3df4d2aef33906b1e7e311b909e12f38539e /myisam/mi_search.c
parentb689a1a752cceae61420ae05c237f550710b954c (diff)
downloadmariadb-git-a9097ca323bf399c5fc45d94a9b121c304f7681e.tar.gz
changed to use IO_CACHE instead of FILE
Diffstat (limited to 'myisam/mi_search.c')
-rw-r--r--myisam/mi_search.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/myisam/mi_search.c b/myisam/mi_search.c
index eead2a84c29..3ffc348ca5c 100644
--- a/myisam/mi_search.c
+++ b/myisam/mi_search.c
@@ -1214,7 +1214,11 @@ int _mi_search_next(register MI_INFO *info, register MI_KEYDEF *keyinfo,
DBUG_EXECUTE("key",_mi_print_key(DBUG_FILE,keyinfo->seg,key,key_length););
/* Force full read if we are at last key or if we are not on a leaf
- and the key tree has changed since we used it last time */
+ and the key tree has changed since we used it last time
+ Note that even if the key tree has changed since last read, we can use
+ the last read data from the leaf if we haven't used the buffer for
+ something else.
+ */
if (((nextflag & SEARCH_BIGGER) && info->int_keypos >= info->int_maxpos) ||
info->page_changed ||