18
18
/* Read first record with the current key */
22
22
HP_SHARE *share = info->s;
23
23
HP_KEYDEF *keyinfo = share->keydef + inx;
27
26
if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
31
30
if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents,
32
31
&info->last_pos, offsetof(TREE_ELEMENT, left))))
34
33
memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
39
38
If we're performing index_first on a table that was taken from
40
39
table cache, info->lastkey_len is initialized to previous query.