26 DBUG_ENTER(
"heap_close");
34 int hp_close(
register HP_INFO *info)
37 DBUG_ENTER(
"hp_close");
39 if (info->s->changed && heap_check_heap(info,0))
41 error=my_errno=HA_ERR_CRASHED;
45 if (info->open_list.data)
46 heap_open_list=list_delete(heap_open_list,&info->open_list);
47 if (!--info->s->open_count && info->s->delete_on_close)