26 DBUG_ENTER(
"heap_rlast");
28 if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
32 if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents,
35 memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
37 info->current_ptr = pos;
38 memcpy(record, pos, (
size_t)share->reclength);
39 info->update = HA_STATE_AKTIV;
43 my_errno = HA_ERR_END_OF_FILE;
44 DBUG_RETURN(my_errno);
51 info->current_hash_ptr=0;
52 info->update=HA_STATE_NEXT_FOUND;
53 DBUG_RETURN(heap_rprev(info,record));