~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_create.cc

  • Committer: Brian Aker
  • Date: 2010-09-19 20:47:36 UTC
  • mto: This revision was merged to the branch mainline in revision 1777.
  • Revision ID: brian@tangent.org-20100919204736-45vvfsa36yonmm1s
Clean up usage of THR_LOCK

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
 
229
229
    /* Must be allocated separately for rename to work */
230
230
    share->name.append(name);
231
 
    thr_lock_init(&share->lock);
232
231
    if (!create_info->internal_table)
233
232
    {
234
233
      heap_share_list.push_front(share);
319
318
{
320
319
  heap_share_list.remove(share);        /* If not internal table */
321
320
  hp_clear(share);                      /* Remove blocks from memory */
322
 
  share->lock.deinit();
323
321
  if (share->keydef)
324
322
    delete [] share->keydef->seg;
325
323
  delete [] share->keydef;