~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/singular.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 10:02:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623100230-w8vx1so32tkxsh6f
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
  if (getShare()->sizeKeys())
183
183
  {                                             // Get keys for ni_create
184
184
    bool using_unique_constraint= false;
185
 
    HA_KEYSEG *seg= (HA_KEYSEG*) getMemRoot().alloc(sizeof(*seg) * keyinfo->key_parts);
 
185
    HA_KEYSEG *seg= (HA_KEYSEG*) mem().alloc(sizeof(*seg) * keyinfo->key_parts);
186
186
 
187
187
    memset(seg, 0, sizeof(*seg) * keyinfo->key_parts);
188
188
    if (keyinfo->key_length >= cursor->getEngine()->max_key_length() ||
323
323
  }
324
324
  free_io_cache();
325
325
 
326
 
  getMemRoot().free_root(MYF(0));
 
326
  mem().free_root(MYF(0));
327
327
  in_use->set_proc_info(save_proc_info);
328
328
}
329
329