~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_write.cc

  • Committer: Brian Aker
  • Date: 2010-08-13 18:47:31 UTC
  • mfrom: (1707.1.7 rollup)
  • Revision ID: brian@tangent.org-20100813184731-w2iu1wzs219nqmt6
Style fixes/etc in heap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
  uint32_t old_allocated;
104
104
 
105
105
  custom_arg.keyseg= keyinfo->seg;
106
 
  custom_arg.key_length= hp_rb_make_key(keyinfo, info->recbuf, record, recpos);
 
106
  custom_arg.key_length= hp_rb_make_key(keyinfo, &info->recbuf[0], record, recpos);
107
107
  if (keyinfo->flag & HA_NOSAME)
108
108
  {
109
109
    custom_arg.search_flag= SEARCH_FIND | SEARCH_UPDATE;
115
115
    keyinfo->rb_tree.flag= 0;
116
116
  }
117
117
  old_allocated= keyinfo->rb_tree.allocated;
118
 
  if (!tree_insert(&keyinfo->rb_tree, (void*)info->recbuf,
 
118
  if (!tree_insert(&keyinfo->rb_tree, &info->recbuf[0],
119
119
                   custom_arg.key_length, &custom_arg))
120
120
  {
121
121
    errno= HA_ERR_FOUND_DUPP_KEY;