~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Stewart Smith
  • Author(s): Marko Mäkelä, Stewart Smith
  • Date: 2010-11-17 05:41:53 UTC
  • mto: (2021.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1971.
  • Revision ID: stewart@flamingspork.com-20101117054153-ap3mtdgmdki1tan5
Merge Revision revid:marko.makela@oracle.com-20100623110659-pk5bqnmo0j7hj6md from MySQL InnoDB

Original revid:marko.makela@oracle.com-20100623110659-pk5bqnmo0j7hj6md

Original Authors: Marko Mkel <marko.makela@oracle.com>
Original commit message:
Bug#54728: Replace the dulint struct with a 64-bit integer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
void
52
52
dict_hdr_get_new_id(
53
53
/*================*/
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) */
 
54
        table_id_t*     table_id,       /*!< out: table id
 
55
                                        (not assigned if NULL) */
 
56
        index_id_t*     index_id,       /*!< out: index id
 
57
                                        (not assigned if NULL) */
 
58
        ulint*          space_id);      /*!< out: space id
 
59
                                        (not assigned if NULL) */
57
60
/**********************************************************************//**
58
61
Returns a new row id.
59
62
@return the new id */
60
63
UNIV_INLINE
61
 
dulint
 
64
row_id_t
62
65
dict_sys_get_new_row_id(void);
63
66
/*=========================*/
64
67
/**********************************************************************//**
65
68
Reads a row id from a record or other 6-byte stored form.
66
69
@return row id */
67
70
UNIV_INLINE
68
 
dulint
 
71
row_id_t
69
72
dict_sys_read_row_id(
70
73
/*=================*/
71
 
        byte*   field); /*!< in: record field */
 
74
        const byte*     field); /*!< in: record field */
72
75
/**********************************************************************//**
73
76
Writes a row id to a record or other 6-byte stored form. */
74
77
UNIV_INLINE
75
78
void
76
79
dict_sys_write_row_id(
77
80
/*==================*/
78
 
        byte*   field,  /*!< in: record field */
79
 
        dulint  row_id);/*!< in: row id */
 
81
        byte*           field,  /*!< in: record field */
 
82
        row_id_t        row_id);/*!< in: row id */
80
83
/*****************************************************************//**
81
84
Initializes the data dictionary memory structures when the database is
82
85
started. This function is also called when the data dictionary is created. */
97
100
#define DICT_HDR_PAGE_NO        FSP_DICT_HDR_PAGE_NO
98
101
 
99
102
/* The ids for the basic system tables and their indexes */
100
 
#define DICT_TABLES_ID          ut_dulint_create(0, 1)
101
 
#define DICT_COLUMNS_ID         ut_dulint_create(0, 2)
102
 
#define DICT_INDEXES_ID         ut_dulint_create(0, 3)
103
 
#define DICT_FIELDS_ID          ut_dulint_create(0, 4)
 
103
#define DICT_TABLES_ID          1
 
104
#define DICT_COLUMNS_ID         2
 
105
#define DICT_INDEXES_ID         3
 
106
#define DICT_FIELDS_ID          4
104
107
/* The following is a secondary index on SYS_TABLES */
105
 
#define DICT_TABLE_IDS_ID       ut_dulint_create(0, 5)
 
108
#define DICT_TABLE_IDS_ID       5
106
109
 
107
110
#define DICT_HDR_FIRST_ID       10      /* the ids for tables etc. start
108
111
                                        from this number, except for basic
110
113
                                        indexes; ibuf tables and indexes are
111
114
                                        assigned as the id the number
112
115
                                        DICT_IBUF_ID_MIN plus the space id */
113
 
#define DICT_IBUF_ID_MIN        ut_dulint_create(0xFFFFFFFFUL, 0)
 
116
#define DICT_IBUF_ID_MIN        0xFFFFFFFF00000000ULL
114
117
 
115
118
/* The offset of the dictionary header on the page */
116
119
#define DICT_HDR                FSEG_PAGE_DATA