~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rfirst.c

  • Committer: Brian Aker
  • Date: 2008-12-06 23:57:32 UTC
  • mfrom: (656.1.10 devel)
  • Revision ID: brian@tangent.org-20081206235732-jx228bczpvmxu8ww
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
{
24
24
  HP_SHARE *share = info->s;
25
25
  HP_KEYDEF *keyinfo = share->keydef + inx;
26
 
  
 
26
 
27
27
  info->lastinx= inx;
28
28
  if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
29
29
  {
32
32
    if ((pos = tree_search_edge(&keyinfo->rb_tree, info->parents,
33
33
                                &info->last_pos, offsetof(TREE_ELEMENT, left))))
34
34
    {
35
 
      memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos), 
 
35
      memcpy(&pos, pos + (*keyinfo->get_key_length)(keyinfo, pos),
36
36
             sizeof(unsigned char*));
37
37
      info->current_ptr = pos;
38
38
      hp_extract_record(share, record, pos);