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