~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_info.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 17:54:00 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717175400-xm2aazihjra8mdzq
Removal of DBUG from libdrizzle/ - Round 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
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
  x->records         = info->s->records;
 
33
  x->deleted         = info->s->deleted;
 
34
  x->reclength       = info->s->reclength;
 
35
  x->data_length     = info->s->data_length;
 
36
  x->index_length    = info->s->index_length;
 
37
  x->max_records     = info->s->max_records;
40
38
  x->errkey          = info->errkey;
41
39
  if (flag & HA_STATUS_AUTO)
42
 
    x->auto_increment= info->getShare()->auto_increment + 1;
 
40
    x->auto_increment= info->s->auto_increment + 1;
43
41
  return(0);
44
42
} /* heap_info */