~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_create.cc

  • Committer: Eric Day
  • Date: 2009-03-27 20:35:31 UTC
  • mto: (968.1.1 lib-merge)
  • mto: This revision was merged to the branch mainline in revision 969.
  • Revision ID: eday@oddments.org-20090327203531-4am4v2x42eylezmq
Fixes for Solaris build.

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
 
      heap_share_list.push_front(share);
 
362
      share->open_list.data= (void*) share;
 
363
      heap_share_list= list_add(heap_share_list,&share->open_list);
363
364
    }
364
365
    else
365
366
      share->delete_on_close= 1;
461
462
 
462
463
void hp_free(HP_SHARE *share)
463
464
{
464
 
  heap_share_list.remove(share);        /* If not internal table */
 
465
  if (share->open_list.data)                    /* If not internal table */
 
466
    heap_share_list= list_delete(heap_share_list, &share->open_list);
465
467
  hp_clear(share);                      /* Remove blocks from memory */
466
468
  thr_lock_delete(&share->lock);
467
469
  pthread_mutex_destroy(&share->intern_lock);