~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merge in Stewart's FK work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1997, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1997, 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
 
43
43
read_view_open_now(
44
44
/*===============*/
45
45
        trx_id_t        cr_trx_id,      /*!< in: trx_id of creating
46
 
                                        transaction, or 0 used in purge */
 
46
                                        transaction, or ut_dulint_zero
 
47
                                        used in purge */
47
48
        mem_heap_t*     heap);          /*!< in: memory heap from which
48
49
                                        allocated */
49
50
/*********************************************************************//**
55
56
read_view_oldest_copy_or_open_new(
56
57
/*==============================*/
57
58
        trx_id_t        cr_trx_id,      /*!< in: trx_id of creating
58
 
                                        transaction, or 0 used in purge */
 
59
                                        transaction, or ut_dulint_zero
 
60
                                        used in purge */
59
61
        mem_heap_t*     heap);          /*!< in: memory heap from which
60
62
                                        allocated */
61
63
/*********************************************************************//**
123
125
 
124
126
struct read_view_struct{
125
127
        ulint           type;   /*!< VIEW_NORMAL, VIEW_HIGH_GRANULARITY */
126
 
        undo_no_t       undo_no;/*!< 0 or if type is
 
128
        undo_no_t       undo_no;/*!< ut_dulint_zero or if type is
127
129
                                VIEW_HIGH_GRANULARITY
128
130
                                transaction undo_no when this high-granularity
129
131
                                consistent read view was created */
154
156
                                that is, up_limit_id and low_limit_id. */
155
157
        trx_id_t        creator_trx_id;
156
158
                                /*!< trx id of creating transaction, or
157
 
                                0 used in purge */
 
159
                                ut_dulint_zero used in purge */
158
160
        UT_LIST_NODE_T(read_view_t) view_list;
159
161
                                /*!< List of read views in trx_sys */
160
162
};