summaryrefslogtreecommitdiff
path: root/heap/hp_rfirst.c
diff options
context:
space:
mode:
authorram@gw.udmsearch.izhnet.ru <>2002-05-23 19:26:16 +0500
committerram@gw.udmsearch.izhnet.ru <>2002-05-23 19:26:16 +0500
commit4375d827dbe3c8a24656c234bdb2db472e54982d (patch)
treec5a8cbf56ea21127e0ba4d444db78aa46cbe0925 /heap/hp_rfirst.c
parentd1e13bec397f4aa737c3dff85dbb01ae526d9429 (diff)
downloadmariadb-git-4375d827dbe3c8a24656c234bdb2db472e54982d.tar.gz
Heap table code cleanup
Diffstat (limited to 'heap/hp_rfirst.c')
-rw-r--r--heap/hp_rfirst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/heap/hp_rfirst.c b/heap/hp_rfirst.c
index 654874d5c8d..39b0d4385f2 100644
--- a/heap/hp_rfirst.c
+++ b/heap/hp_rfirst.c
@@ -31,7 +31,8 @@ int heap_rfirst(HP_INFO *info, byte *record, int inx)
if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents,
&info->last_pos, offsetof(TREE_ELEMENT, left))))
{
- memcpy(&pos, pos + hp_rb_key_length(keyinfo, pos), sizeof(byte*));
+ memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
+ sizeof(byte*));
info->current_ptr = pos;
memcpy(record, pos, (size_t)share->reclength);
info->update = HA_STATE_AKTIV;