InnoDB Plugin  1.0
buf0rea.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1995, 2013, Oracle and/or its affiliates. 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.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
26 #ifndef buf0rea_h
27 #define buf0rea_h
28 
29 #include "univ.i"
30 #include "buf0types.h"
31 
32 /********************************************************************/
38 UNIV_INTERN
39 ibool
41 /*==========*/
42  ulint space,
43  ulint zip_size,
44  ulint offset);
45 /********************************************************************/
51 UNIV_INTERN
52 ibool
54 /*================*/
55  ulint space,
56  ulint offset);
57 /********************************************************************/
71 UNIV_INTERN
72 ulint
74 /*==================*/
75  ulint space,
76  ulint zip_size,
78  ulint offset,
80  ibool inside_ibuf);
82 /********************************************************************/
106 UNIV_INTERN
107 ulint
109 /*==================*/
110  ulint space,
111  ulint zip_size,
112  ulint offset,
113  ibool inside_ibuf);
114 /********************************************************************/
118 UNIV_INTERN
119 void
121 /*======================*/
122  bool sync,
127  const ulint* space_ids,
128  const ib_int64_t* space_versions,
135  const ulint* page_nos,
139  ulint n_stored);
141 /********************************************************************/
143 UNIV_INTERN
144 void
146 /*================*/
147  ibool sync,
152  ulint space,
153  ulint zip_size,
155  const ulint* page_nos,
159  ulint n_stored);
164 #define BUF_READ_AHEAD_AREA(b) \
165  ut_min(64, ut_2_power_up((b)->curr_size / 32))
166 
169 #define BUF_READ_IBUF_PAGES_ONLY 131
170 
171 #define BUF_READ_ANY_PAGE 132
172 
174 #define BUF_READ_IGNORE_NONEXISTENT_PAGES 1024
175 /* @} */
176 
177 #endif