diff options
author | ram@mysql.r18.ru <> | 2003-06-10 12:19:28 +0500 |
---|---|---|
committer | ram@mysql.r18.ru <> | 2003-06-10 12:19:28 +0500 |
commit | bf4549317554082ff9e84eb2ede0c7f473ca6d41 (patch) | |
tree | 211244f1be888cfee742d4ceecead17a4a0b5cd4 /heap | |
parent | 1ffc3cca56a87ae7a36cd5a39501ec96d9ef529c (diff) | |
download | mariadb-git-bf4549317554082ff9e84eb2ede0c7f473ca6d41.tar.gz |
Bugfix for HEAP table rb-index scan.
Diffstat (limited to 'heap')
-rw-r--r-- | heap/hp_rkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/heap/hp_rkey.c b/heap/hp_rkey.c index 91d762ab4db..2c23d9d721e 100644 --- a/heap/hp_rkey.c +++ b/heap/hp_rkey.c @@ -38,7 +38,7 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key, custom_arg.keyseg= info->s->keydef[inx].seg; custom_arg.key_length= info->lastkey_len= - hp_rb_pack_key(keyinfo, (uchar*) info->recbuf, + hp_rb_pack_key(keyinfo, (uchar*) info->lastkey, (uchar*) key, key_len); custom_arg.search_flag= SEARCH_FIND | SEARCH_SAME; /* for next rkey() after deletion */ @@ -48,7 +48,7 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key, info->last_find_flag= HA_READ_KEY_OR_PREV; else info->last_find_flag= find_flag; - if (!(pos= tree_search_key(&keyinfo->rb_tree, info->recbuf, info->parents, + if (!(pos= tree_search_key(&keyinfo->rb_tree, info->lastkey, info->parents, &info->last_pos, find_flag, &custom_arg))) { info->update= 0; |