示例#1
0
void hp_free(HP_SHARE *share)
{
  if (share->open_list.data)                    /* If not internal table */
    heap_share_list= list_delete(heap_share_list, &share->open_list);
  hp_clear(share);			/* Remove blocks from memory */
  thr_lock_delete(&share->lock);
  mysql_mutex_destroy(&share->intern_lock);
  my_free(share->name);
  my_free(share);
  return;
}
示例#2
0
void hp_free(HP_SHARE *share)
{
    my_bool not_internal_table= (share->open_list.data != NULL);
    if (not_internal_table)                    /* If not internal table */
        heap_share_list= list_delete(heap_share_list, &share->open_list);
    hp_clear(share);			/* Remove blocks from memory */
    if (not_internal_table)
        thr_lock_delete(&share->lock);
    my_free(share->name);
    my_free(share);
    return;
}
示例#3
0
文件: hp_clear.c 项目: isleon/Jaxer
void heap_clear_keys(HP_INFO *info)
{
  hp_clear(info->s);
}