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