drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
buf0rea.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1995, 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 buf0rea_h
28#define buf0rea_h
29
30#include "univ.i"
31#include "buf0types.h"
32#include "trx0types.h"
33
34/********************************************************************/
44UNIV_INTERN
45ulint
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);
64
65/********************************************************************/
71UNIV_INTERN
72ibool
74/*==========*/
75 ulint space,
76 ulint zip_size,
77 ulint offset);
78/********************************************************************/
102UNIV_INTERN
103ulint
105/*==================*/
106 ulint space,
107 ulint zip_size,
108 ulint offset,
109 ibool inside_ibuf);
110/********************************************************************/
114UNIV_INTERN
115void
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/********************************************************************/
139UNIV_INTERN
140void
142/*================*/
143 ibool sync,
148 ulint space,
149 ulint zip_size,
151 const ulint* page_nos,
155 ulint n_stored);
157
160#define BUF_READ_AHEAD_AREA(b) 64
161
164#define BUF_READ_IBUF_PAGES_ONLY 131
166#define BUF_READ_ANY_PAGE 132
167/* @} */
168
169#endif
UNIV_INTERN void buf_read_recv_pages(ibool sync, ulint space, ulint zip_size, const ulint *page_nos, ulint n_stored)
Definition buf0rea.cc:576
UNIV_INTERN void buf_read_ibuf_merge_pages(ibool sync, const ulint *space_ids, const ib_int64_t *space_versions, const ulint *page_nos, ulint n_stored)
Definition buf0rea.cc:497
UNIV_INTERN ulint buf_read_page_low(ulint *err, ibool sync, ulint mode, ulint space, ulint zip_size, ibool unzip, ib_int64_t tablespace_version, ulint offset)
Definition buf0rea.cc:61
UNIV_INTERN ulint buf_read_ahead_linear(ulint space, ulint zip_size, ulint offset, ibool inside_ibuf)
Definition buf0rea.cc:233
UNIV_INTERN ibool buf_read_page(ulint space, ulint zip_size, ulint offset)
Definition buf0rea.cc:168