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; }
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; }
void heap_clear_keys(HP_INFO *info) { hp_clear(info->s); }