~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_open.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:
36
36
  share->open_count++;
37
37
  info->lock.init(&share->lock);
38
38
  info->setShare(share);
39
 
  info->lastkey= new unsigned char[share->max_key_length];
40
 
  info->recbuf= new unsigned char[share->max_key_length];
 
39
  info->lastkey.resize(share->max_key_length);
 
40
  info->recbuf.resize(share->max_key_length);
41
41
  info->mode= mode;
42
42
  info->current_record= UINT32_MAX;             /* No current record */
43
43
  info->lastinx= info->errkey= -1;