diff options
author | unknown <serg@serg.mylan> | 2005-02-12 00:05:13 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-02-12 00:05:13 +0100 |
commit | bae820dc664a70e2c9cc26a9ded324260a53d671 (patch) | |
tree | 96de45081501da74fd00fa089156e0db380e9515 /myisam | |
parent | b39c03675b790ea4c1ecfab76a820679967de302 (diff) | |
download | mariadb-git-bae820dc664a70e2c9cc26a9ded324260a53d671.tar.gz |
make LOAD INDEX to work
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_preload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/myisam/mi_preload.c b/myisam/mi_preload.c index 5e03d489efe..317ab4ad7fe 100644 --- a/myisam/mi_preload.c +++ b/myisam/mi_preload.c @@ -71,15 +71,15 @@ int mi_preload(MI_INFO *info, ulonglong key_map, my_bool ignore_leaves) if (flush_key_blocks(share->key_cache,share->kfile, FLUSH_RELEASE)) goto err; - + do { /* Read the next block of index file into the preload buffer */ if ((my_off_t) length > (key_file_length-pos)) length= (ulong) (key_file_length-pos); - if (my_pread(share->kfile, (byte*) buff, length, pos, MYF(MY_FAE))) + if (my_pread(share->kfile, (byte*) buff, length, pos, MYF(MY_FAE|MY_FNABP))) goto err; - + if (ignore_leaves) { uchar *end= buff+length; @@ -88,7 +88,7 @@ int mi_preload(MI_INFO *info, ulonglong key_map, my_bool ignore_leaves) if (mi_test_if_nod(buff)) { if (key_cache_insert(share->key_cache, - share->kfile, pos, DFLT_INIT_HITS, + share->kfile, pos, DFLT_INIT_HITS, (byte*) buff, block_length)) goto err; } |