summaryrefslogtreecommitdiff
path: root/heap
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-06-10 12:19:28 +0500
committerunknown <ram@mysql.r18.ru>2003-06-10 12:19:28 +0500
commit85be6a0ac822dd0469eb1da9834b477ffa74ae68 (patch)
tree211244f1be888cfee742d4ceecead17a4a0b5cd4 /heap
parent8484e6f7598251c50c2439e6b2d26afe6729435a (diff)
downloadmariadb-git-85be6a0ac822dd0469eb1da9834b477ffa74ae68.tar.gz
Bugfix for HEAP table rb-index scan.
Diffstat (limited to 'heap')
-rw-r--r--heap/hp_rkey.c4
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;