Drizzled Public API Documentation

buf0rea.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1995, 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 buf0rea_h
28 #define buf0rea_h
29 
30 #include "univ.i"
31 #include "buf0types.h"
32 #include "trx0types.h"
33 
34 /********************************************************************/
44 UNIV_INTERN
45 ulint
46 buf_read_page_low(
47 /*==============*/
48  ulint* err,
51  ibool sync,
52  ulint mode,
55  ulint space,
56  ulint zip_size,
57  ibool unzip,
58  ib_int64_t tablespace_version,
63  ulint offset);
65 /********************************************************************/
71 UNIV_INTERN
72 ibool
73 buf_read_page(
74 /*==========*/
75  ulint space,
76  ulint zip_size,
77  ulint offset);
78 /********************************************************************/
102 UNIV_INTERN
103 ulint
104 buf_read_ahead_linear(
105 /*==================*/
106  ulint space,
107  ulint zip_size,
108  ulint offset);
110 /********************************************************************/
114 UNIV_INTERN
115 void
116 buf_read_ibuf_merge_pages(
117 /*======================*/
118  ibool sync,
123  const ulint* space_ids,
124  const ib_int64_t* space_versions,
131  const ulint* page_nos,
135  ulint n_stored);
137 /********************************************************************/
139 UNIV_INTERN
140 void
141 buf_read_recv_pages(
142 /*================*/
143  ibool sync,
148  ulint space,
149  ulint zip_size,
151  const ulint* page_nos,
155  ulint n_stored);
160 #define BUF_READ_AHEAD_AREA(b) 64
161 
164 #define BUF_READ_IBUF_PAGES_ONLY 131
165 
166 #define BUF_READ_ANY_PAGE 132
167 /* @} */
168 
169 #endif