~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_rprev.cc

  • Committer: Brian Aker
  • Date: 2010-08-13 00:46:27 UTC
  • mto: (1711.1.17 build)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: brian@tangent.org-20100813004627-zztrtq1j1r7zsm3w
Switch to using vector.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
      custom_arg.key_length = keyinfo->length;
47
47
      custom_arg.search_flag = SEARCH_SAME;
48
48
      pos = (unsigned char *)tree_search_key(&keyinfo->rb_tree,
49
 
                                             info->lastkey, info->parents,
 
49
                                             &info->lastkey[0], info->parents,
50
50
                                             &info->last_pos,
51
51
                                             info->last_find_flag,
52
52
                                             &custom_arg);
67
67
    if (info->current_ptr || (info->update & HA_STATE_NEXT_FOUND))
68
68
    {
69
69
      if ((info->update & HA_STATE_DELETED))
70
 
        pos= hp_search(info, share->keydef + info->lastinx, info->lastkey, 3);
 
70
        pos= hp_search(info, share->keydef + info->lastinx, &info->lastkey[0], 3);
71
71
      else
72
 
        pos= hp_search(info, share->keydef + info->lastinx, info->lastkey, 2);
 
72
        pos= hp_search(info, share->keydef + info->lastinx, &info->lastkey[0], 2);
73
73
    }
74
74
    else
75
75
    {