~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/btr0btr.ic

  • Committer: Brian Aker
  • Date: 2010-09-22 22:29:55 UTC
  • mto: (1787.3.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1789.
  • Revision ID: brian@tangent.org-20100922222955-cg1bddv4b72jwe31
Fix enum at being an intefer (which is what PG did, and it saves on
alignment issues).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 2009, 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
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
86
86
        page_t*         page,   /*!< in: page to be created */
87
87
        page_zip_des_t* page_zip,/*!< in: compressed page whose uncompressed
88
88
                                part will be updated, or NULL */
89
 
        index_id_t      id,     /*!< in: index id */
 
89
        dulint          id,     /*!< in: index id */
90
90
        mtr_t*          mtr)    /*!< in: mtr */
91
91
{
92
92
        if (UNIV_LIKELY_NULL(page_zip)) {
95
95
                                      page + (PAGE_HEADER + PAGE_INDEX_ID),
96
96
                                      8, mtr);
97
97
        } else {
98
 
                mlog_write_ull(page + (PAGE_HEADER + PAGE_INDEX_ID), id, mtr);
 
98
                mlog_write_dulint(page + (PAGE_HEADER + PAGE_INDEX_ID),
 
99
                                  id, mtr);
99
100
        }
100
101
}
101
102
#endif /* !UNIV_HOTBACKUP */
104
105
Gets the index id field of a page.
105
106
@return index id */
106
107
UNIV_INLINE
107
 
index_id_t
 
108
dulint
108
109
btr_page_get_index_id(
109
110
/*==================*/
110
111
        const page_t*   page)   /*!< in: index page */
257
258
 
258
259
/**************************************************************//**
259
260
Gets the child node file address in a node pointer.
260
 
NOTE: the offsets array must contain all offsets for the record since
261
 
we read the last field according to offsets and assume that it contains
262
 
the child page number. In other words offsets must have been retrieved
263
 
with rec_get_offsets(n_fields=ULINT_UNDEFINED).
264
261
@return child node address */
265
262
UNIV_INLINE
266
263
ulint