drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
read0read.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1997, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
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/*********************************************************************/
42UNIV_INTERN
43read_view_t*
45/*===============*/
46 trx_id_t cr_trx_id,
48 mem_heap_t* heap);
50/*********************************************************************/
54UNIV_INTERN
55read_view_t*
57/*==============================*/
58 trx_id_t cr_trx_id,
60 mem_heap_t* heap);
62/*********************************************************************/
64UNIV_INTERN
65void
67/*============*/
68 read_view_t* view);
69/*********************************************************************/
72UNIV_INTERN
73void
75/*======================*/
76 trx_t* trx);
77/*********************************************************************/
80UNIV_INLINE
81ibool
83/*==================*/
84 const read_view_t* view,
85 trx_id_t trx_id);
86/*********************************************************************/
88UNIV_INTERN
89void
91/*============*/
92 const read_view_t* view);
93/*********************************************************************/
97UNIV_INTERN
98cursor_view_t*
100/*==============================*/
101 trx_t* cr_trx);
102/*********************************************************************/
105UNIV_INTERN
106void
108/*=============================*/
109 trx_t* trx,
110 cursor_view_t* curview);
111/*********************************************************************/
115UNIV_INTERN
116void
118/*======================*/
119 trx_t* trx,
120 cursor_view_t* curview);
121
124
162
164#define VIEW_NORMAL 1
168#define VIEW_HIGH_GRANULARITY 2
173/* @} */
174
178
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
UNIV_INTERN void read_view_print(const read_view_t *view)
Definition read0read.cc:358
UNIV_INTERN void read_cursor_view_close_for_mysql(trx_t *trx, cursor_view_t *curview)
Definition read0read.cc:484
UNIV_INLINE ibool read_view_sees_trx_id(const read_view_t *view, trx_id_t trx_id)
UNIV_INTERN void read_view_close(read_view_t *view)
Definition read0read.cc:322
UNIV_INTERN read_view_t * read_view_oldest_copy_or_open_new(trx_id_t cr_trx_id, mem_heap_t *heap)
Definition read0read.cc:168
UNIV_INTERN void read_cursor_set_for_mysql(trx_t *trx, cursor_view_t *curview)
Definition read0read.cc:512
UNIV_INTERN cursor_view_t * read_cursor_view_create_for_mysql(trx_t *cr_trx)
Definition read0read.cc:399
UNIV_INTERN void read_view_close_for_mysql(trx_t *trx)
Definition read0read.cc:336
UNIV_INTERN read_view_t * read_view_open_now(trx_id_t cr_trx_id, mem_heap_t *heap)
Definition read0read.cc:250
mem_heap_t * heap
Definition read0read.h:180
read_view_t * read_view
Definition read0read.h:182
trx_id_t low_limit_id
Definition read0read.h:137
trx_id_t * trx_ids
Definition read0read.h:148
trx_id_t up_limit_id
Definition read0read.h:141
UT_LIST_NODE_T(read_view_t) view_list
undo_no_t undo_no
Definition read0read.h:127
trx_id_t creator_trx_id
Definition read0read.h:156
trx_id_t low_limit_no
Definition read0read.h:131
ib_id_t undo_no_t
Definition trx0types.h:89
ib_id_t trx_id_t
Definition trx0types.h:85