~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/dict0boot.h

Merge initial InnoDB+ import.

This was applied by generating a patch between MySQL 5.1.50 InnoDB plugin and
the just-merged innodb+ from mysql-trunk revision-id: vasil.dimov@oracle.com-20100422110752-1zowoqxel5xx3z2e

Then, some manual merge resolving and it worked. This should make it much
easier to merge the rest of InnoDB 1.1 and 1.2 from the mysql tree using
my bzr-reapply script.

This takes us to InnoDB 1.1.1(ish).

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
/*=========*/
47
47
        mtr_t*  mtr);   /*!< in: mtr */
48
48
/**********************************************************************//**
49
 
Returns a new table, index, or space id. */
 
49
Returns a new row, table, index, or tree id.
 
50
@return the new id */
50
51
UNIV_INTERN
51
 
void
 
52
dulint
52
53
dict_hdr_get_new_id(
53
54
/*================*/
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) */
 
55
        ulint   type);  /*!< in: DICT_HDR_ROW_ID, ... */
57
56
/**********************************************************************//**
58
57
Returns a new row id.
59
58
@return the new id */
120
119
#define DICT_HDR_ROW_ID         0       /* The latest assigned row id */
121
120
#define DICT_HDR_TABLE_ID       8       /* The latest assigned table id */
122
121
#define DICT_HDR_INDEX_ID       16      /* The latest assigned index id */
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 */
 
122
#define DICT_HDR_MIX_ID         24      /* Obsolete, always 0. */
125
123
#define DICT_HDR_TABLES         32      /* Root of the table index tree */
126
124
#define DICT_HDR_TABLE_IDS      36      /* Root of the table index tree */
127
125
#define DICT_HDR_COLUMNS        40      /* Root of the column index tree */
139
137
#define DICT_SYS_INDEXES_PAGE_NO_FIELD   8
140
138
#define DICT_SYS_INDEXES_SPACE_NO_FIELD  7
141
139
#define DICT_SYS_INDEXES_TYPE_FIELD      6
142
 
#define DICT_SYS_INDEXES_NAME_FIELD      4
 
140
#define DICT_SYS_INDEXES_NAME_FIELD      3
143
141
 
144
142
/* When a row id which is zero modulo this number (which must be a power of
145
143
two) is assigned, the field DICT_HDR_ROW_ID on the dictionary header page is