~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

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, 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
36
36
Returns a new row id.
37
37
@return the new id */
38
38
UNIV_INLINE
39
 
row_id_t
 
39
dulint
40
40
dict_sys_get_new_row_id(void)
41
41
/*=========================*/
42
42
{
43
 
        row_id_t        id;
 
43
        dulint  id;
44
44
 
45
45
        mutex_enter(&(dict_sys->mutex));
46
46
 
47
47
        id = dict_sys->row_id;
48
48
 
49
 
        if (0 == (id % DICT_HDR_ROW_ID_WRITE_MARGIN)) {
 
49
        if (0 == (ut_dulint_get_low(id) % DICT_HDR_ROW_ID_WRITE_MARGIN)) {
50
50
 
51
51
                dict_hdr_flush_row_id();
52
52
        }
53
53
 
54
 
        dict_sys->row_id++;
 
54
        UT_DULINT_INC(dict_sys->row_id);
55
55
 
56
56
        mutex_exit(&(dict_sys->mutex));
57
57
 
62
62
Reads a row id from a record or other 6-byte stored form.
63
63
@return row id */
64
64
UNIV_INLINE
65
 
row_id_t
 
65
dulint
66
66
dict_sys_read_row_id(
67
67
/*=================*/
68
 
        const byte*     field)  /*!< in: record field */
 
68
        byte*   field)  /*!< in: record field */
69
69
{
70
70
#if DATA_ROW_ID_LEN != 6
71
71
# error "DATA_ROW_ID_LEN != 6"
80
80
void
81
81
dict_sys_write_row_id(
82
82
/*==================*/
83
 
        byte*           field,  /*!< in: record field */
84
 
        row_id_t        row_id) /*!< in: row id */
 
83
        byte*   field,  /*!< in: record field */
 
84
        dulint  row_id) /*!< in: row id */
85
85
{
86
86
#if DATA_ROW_ID_LEN != 6
87
87
# error "DATA_ROW_ID_LEN != 6"