~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/dict0boot.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2010, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
46
46
/*=========*/
47
47
        mtr_t*  mtr);   /*!< in: mtr */
48
48
/**********************************************************************//**
49
 
Returns a new row, table, index, or tree id.
50
 
@return the new id */
 
49
Returns a new table, index, or space id. */
51
50
UNIV_INTERN
52
 
dulint
 
51
void
53
52
dict_hdr_get_new_id(
54
53
/*================*/
55
 
        ulint   type);  /*!< in: DICT_HDR_ROW_ID, ... */
 
54
        dulint* table_id,       /*!< out: table id (not assigned if NULL) */
 
55
        dulint* index_id,       /*!< out: index id (not assigned if NULL) */
 
56
        ulint*  space_id);      /*!< out: space id (not assigned if NULL) */
56
57
/**********************************************************************//**
57
58
Returns a new row id.
58
59
@return the new id */
119
120
#define DICT_HDR_ROW_ID         0       /* The latest assigned row id */
120
121
#define DICT_HDR_TABLE_ID       8       /* The latest assigned table id */
121
122
#define DICT_HDR_INDEX_ID       16      /* The latest assigned index id */
122
 
#define DICT_HDR_MIX_ID         24      /* Obsolete, always 0. */
 
123
#define DICT_HDR_MAX_SPACE_ID   24      /* The latest assigned space id, or 0*/
 
124
#define DICT_HDR_MIX_ID_LOW     28      /* Obsolete,always DICT_HDR_FIRST_ID */
123
125
#define DICT_HDR_TABLES         32      /* Root of the table index tree */
124
126
#define DICT_HDR_TABLE_IDS      36      /* Root of the table index tree */
125
127
#define DICT_HDR_COLUMNS        40      /* Root of the column index tree */
137
139
#define DICT_SYS_INDEXES_PAGE_NO_FIELD   8
138
140
#define DICT_SYS_INDEXES_SPACE_NO_FIELD  7
139
141
#define DICT_SYS_INDEXES_TYPE_FIELD      6
 
142
#define DICT_SYS_INDEXES_NAME_FIELD      4
140
143
 
141
144
/* When a row id which is zero modulo this number (which must be a power of
142
145
two) is assigned, the field DICT_HDR_ROW_ID on the dictionary header page is