~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_delete.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:
70
70
    info->last_pos= NULL; /* For heap_rnext/heap_rprev */
71
71
 
72
72
  custom_arg.keyseg= keyinfo->seg;
73
 
  custom_arg.key_length= hp_rb_make_key(keyinfo, info->recbuf, record, recpos);
 
73
  custom_arg.key_length= hp_rb_make_key(keyinfo, &info->recbuf[0], record, recpos);
74
74
  custom_arg.search_flag= SEARCH_SAME;
75
75
  old_allocated= keyinfo->rb_tree.allocated;
76
 
  res= tree_delete(&keyinfo->rb_tree, info->recbuf, custom_arg.key_length,
 
76
  res= tree_delete(&keyinfo->rb_tree, &info->recbuf[0], custom_arg.key_length,
77
77
                   &custom_arg);
78
78
  info->getShare()->index_length-= (old_allocated - keyinfo->rb_tree.allocated);
79
79
  return res;