18
20
/* Read first record with the current key */
22
24
HP_SHARE *share = info->s;
23
25
HP_KEYDEF *keyinfo = share->keydef + inx;
26
28
if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
30
32
if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents,
31
33
&info->last_pos, offsetof(TREE_ELEMENT, left))))
33
memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
35
memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
36
38
hp_extract_record(share, record, pos);