25 DBUG_ENTER(
"heap_rfirst");
27 if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
31 if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents,
34 memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
36 info->current_ptr = pos;
37 memcpy(record, pos, (
size_t)share->reclength);
49 info->update = HA_STATE_AKTIV;
53 my_errno = HA_ERR_END_OF_FILE;
54 DBUG_RETURN(my_errno);
60 if (!(info->s->records))
62 my_errno=HA_ERR_END_OF_FILE;
63 DBUG_RETURN(my_errno);
66 info->current_record=0;
67 info->current_hash_ptr=0;
68 info->update=HA_STATE_PREV_FOUND;
69 DBUG_RETURN(heap_rnext(info,record));