~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_create.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-28 03:32:31 UTC
  • mto: (968.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 971.
  • Revision ID: osullivan.padraig@gmail.com-20090328033231-71zz58278t2wn78d
Initial work on removing LIST from the heap storage engine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
    pthread_mutex_init(&share->intern_lock,MY_MUTEX_INIT_FAST);
360
360
    if (!create_info->internal_table)
361
361
    {
362
 
      share->open_list.data= (void*) share;
363
 
      heap_share_list= list_add(heap_share_list,&share->open_list);
 
362
      heap_share_list.push_front(share);
364
363
    }
365
364
    else
366
365
      share->delete_on_close= 1;
462
461
 
463
462
void hp_free(HP_SHARE *share)
464
463
{
465
 
  if (share->open_list.data)                    /* If not internal table */
466
 
    heap_share_list= list_delete(heap_share_list, &share->open_list);
 
464
  heap_share_list.remove(share);        /* If not internal table */
467
465
  hp_clear(share);                      /* Remove blocks from memory */
468
466
  thr_lock_delete(&share->lock);
469
467
  pthread_mutex_destroy(&share->intern_lock);