00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "heap_priv.h"
00019
00020
00021 unsigned char *heap_position(HP_INFO *info)
00022 {
00023 return ((info->update & HA_STATE_AKTIV) ? info->current_ptr :
00024 (HEAP_PTR) 0);
00025 }
00026
00027
00028
00029
00030 int heap_info(register HP_INFO *info, register HEAPINFO *x, int flag )
00031 {
00032 x->records = info->getShare()->records;
00033 x->deleted = info->getShare()->recordspace.del_chunk_count;
00034
00035 x->reclength = info->getShare()->recordspace.chunk_dataspace_length;
00036
00037 x->data_length = info->getShare()->recordspace.total_data_length;
00038 x->index_length = info->getShare()->index_length;
00039 x->max_records = info->getShare()->max_records;
00040 x->errkey = info->errkey;
00041 if (flag & HA_STATUS_AUTO)
00042 x->auto_increment= info->getShare()->auto_increment + 1;
00043 return(0);
00044 }