~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_info.c

  • Committer: Brian Aker
  • Date: 2008-06-28 01:01:34 UTC
  • Revision ID: brian@tangent.org-20080628010134-n44ixrdgb6yexhkb
Remove my_pthread_getspecific_ptr()

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Returns info about database status */
17
17
 
18
 
#include "heap_priv.h"
19
 
 
20
 
 
21
 
unsigned char *heap_position(HP_INFO *info)
 
18
#include "heapdef.h"
 
19
 
 
20
 
 
21
uchar *heap_position(HP_INFO *info)
22
22
{
23
23
  return ((info->update & HA_STATE_AKTIV) ? info->current_ptr :
24
24
          (HEAP_PTR) 0);
29
29
 
30
30
int heap_info(register HP_INFO *info, register HEAPINFO *x, int flag )
31
31
{
32
 
  x->records         = info->getShare()->records;
33
 
  x->deleted         = info->getShare()->recordspace.del_chunk_count;
34
 
 
35
 
  x->reclength     = info->getShare()->recordspace.chunk_dataspace_length;
36
 
 
37
 
  x->data_length     = info->getShare()->recordspace.total_data_length;
38
 
  x->index_length    = info->getShare()->index_length;
39
 
  x->max_records     = info->getShare()->max_records;
 
32
  DBUG_ENTER("heap_info");
 
33
  x->records         = info->s->records;
 
34
  x->deleted         = info->s->deleted;
 
35
  x->reclength       = info->s->reclength;
 
36
  x->data_length     = info->s->data_length;
 
37
  x->index_length    = info->s->index_length;
 
38
  x->max_records     = info->s->max_records;
40
39
  x->errkey          = info->errkey;
41
40
  if (flag & HA_STATUS_AUTO)
42
 
    x->auto_increment= info->getShare()->auto_increment + 1;
43
 
  return(0);
 
41
    x->auto_increment= info->s->auto_increment + 1;
 
42
  DBUG_RETURN(0);
44
43
} /* heap_info */