Drizzled Public API Documentation

buf0rea.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003 Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
00004 
00005 This program is free software; you can redistribute it and/or modify it under
00006 the terms of the GNU General Public License as published by the Free Software
00007 Foundation; version 2 of the License.
00008 
00009 This program is distributed in the hope that it will be useful, but WITHOUT
00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
00012 
00013 You should have received a copy of the GNU General Public License along with
00014 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
00015 St, Fifth Floor, Boston, MA 02110-1301 USA
00016 
00017 *****************************************************************************/
00018 
00019 /**************************************************/
00026 #pragma once
00027 #ifndef buf0rea_h
00028 #define buf0rea_h
00029 
00030 #include "univ.i"
00031 #include "buf0types.h"
00032 #include "trx0types.h"
00033 
00034 /********************************************************************/
00044 UNIV_INTERN
00045 ulint
00046 buf_read_page_low(
00047 /*==============*/
00048   ulint*  err,  
00051   ibool sync, 
00052   ulint mode, 
00055   ulint space,  
00056   ulint zip_size,
00057   ibool unzip,  
00058   ib_int64_t tablespace_version, 
00063   ulint offset);
00065 /********************************************************************/
00071 UNIV_INTERN
00072 ibool
00073 buf_read_page(
00074 /*==========*/
00075   ulint space,  
00076   ulint zip_size,
00077   ulint offset);
00078 /********************************************************************/
00102 UNIV_INTERN
00103 ulint
00104 buf_read_ahead_linear(
00105 /*==================*/
00106   ulint space,  
00107   ulint zip_size,
00108   ulint offset);
00110 /********************************************************************/
00114 UNIV_INTERN
00115 void
00116 buf_read_ibuf_merge_pages(
00117 /*======================*/
00118   ibool   sync,   
00123   const ulint*  space_ids,  
00124   const ib_int64_t* space_versions,
00131   const ulint*  page_nos, 
00135   ulint   n_stored);  
00137 /********************************************************************/
00139 UNIV_INTERN
00140 void
00141 buf_read_recv_pages(
00142 /*================*/
00143   ibool   sync,   
00148   ulint   space,    
00149   ulint   zip_size, 
00151   const ulint*  page_nos, 
00155   ulint   n_stored);  
00160 #define BUF_READ_AHEAD_AREA(b)    64
00161 
00164 #define BUF_READ_IBUF_PAGES_ONLY  131
00165 
00166 #define BUF_READ_ANY_PAGE   132
00167 /* @} */
00168 
00169 #endif