diff options
author | unknown <ram@gw.udmsearch.izhnet.ru> | 2002-05-23 19:26:16 +0500 |
---|---|---|
committer | unknown <ram@gw.udmsearch.izhnet.ru> | 2002-05-23 19:26:16 +0500 |
commit | c1f3be5bb5f70e5d0376f258b79ccffa5b2d9c2b (patch) | |
tree | c5a8cbf56ea21127e0ba4d444db78aa46cbe0925 /heap/hp_rlast.c | |
parent | e494b724d0b3100d325a6dd9f59c004b3bb71c1c (diff) | |
download | mariadb-git-c1f3be5bb5f70e5d0376f258b79ccffa5b2d9c2b.tar.gz |
Heap table code cleanup
Diffstat (limited to 'heap/hp_rlast.c')
-rw-r--r-- | heap/hp_rlast.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heap/hp_rlast.c b/heap/hp_rlast.c index 6832b6e2428..e51a0e8a8f1 100644 --- a/heap/hp_rlast.c +++ b/heap/hp_rlast.c @@ -32,7 +32,8 @@ int heap_rlast(HP_INFO *info, byte *record, int inx) if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents, &info->last_pos, offsetof(TREE_ELEMENT, right)))) { - 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; |