Drizzled Public API Documentation

read0read.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1997, 2009, Innobase Oy. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
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
16 
17 *****************************************************************************/
18 
19 /**************************************************/
26 #pragma once
27 #ifndef read0read_h
28 #define read0read_h
29 
30 #include "univ.i"
31 
32 
33 #include "ut0byte.h"
34 #include "ut0lst.h"
35 #include "trx0trx.h"
36 #include "read0types.h"
37 
38 /*********************************************************************/
42 UNIV_INTERN
45 /*===============*/
46  trx_id_t cr_trx_id,
48  mem_heap_t* heap);
50 /*********************************************************************/
54 UNIV_INTERN
57 /*==============================*/
58  trx_id_t cr_trx_id,
60  mem_heap_t* heap);
62 /*********************************************************************/
64 UNIV_INTERN
65 void
67 /*============*/
68  read_view_t* view);
69 /*********************************************************************/
72 UNIV_INTERN
73 void
75 /*======================*/
76  trx_t* trx);
77 /*********************************************************************/
80 UNIV_INLINE
81 ibool
83 /*==================*/
84  const read_view_t* view,
85  trx_id_t trx_id);
86 /*********************************************************************/
88 UNIV_INTERN
89 void
91 /*============*/
92  const read_view_t* view);
93 /*********************************************************************/
97 UNIV_INTERN
100 /*==============================*/
101  trx_t* cr_trx);
102 /*********************************************************************/
105 UNIV_INTERN
106 void
108 /*=============================*/
109  trx_t* trx,
110  cursor_view_t* curview);
111 /*********************************************************************/
115 UNIV_INTERN
116 void
118 /*======================*/
119  trx_t* trx,
120  cursor_view_t* curview);
126  ulint type;
146  ulint n_trx_ids;
159  UT_LIST_NODE_T(read_view_t) view_list;
161 };
162 
164 #define VIEW_NORMAL 1
168 #define VIEW_HIGH_GRANULARITY 2
173 /* @} */
174 
180  mem_heap_t* heap;
182  read_view_t* read_view;
184 };
185 
186 #ifndef UNIV_NONINL
187 #include "read0read.ic"
188 #endif
189 
190 #endif