~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/fut0fut.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
 
16
 
 
17
*****************************************************************************/
 
18
 
 
19
/******************************************************************//**
 
20
@file include/fut0fut.h
 
21
File-based utilities
 
22
 
 
23
Created 12/13/1995 Heikki Tuuri
 
24
***********************************************************************/
 
25
 
 
26
 
 
27
#ifndef fut0fut_h
 
28
#define fut0fut_h
 
29
 
 
30
#include "univ.i"
 
31
 
 
32
#include "fil0fil.h"
 
33
#include "mtr0mtr.h"
 
34
 
 
35
/********************************************************************//**
 
36
Gets a pointer to a file address and latches the page.
 
37
@return pointer to a byte in a frame; the file page in the frame is
 
38
bufferfixed and latched */
 
39
UNIV_INLINE
 
40
byte*
 
41
fut_get_ptr(
 
42
/*========*/
 
43
        ulint           space,  /*!< in: space id */
 
44
        ulint           zip_size,/*!< in: compressed page size in bytes
 
45
                                or 0 for uncompressed pages */
 
46
        fil_addr_t      addr,   /*!< in: file address */
 
47
        ulint           rw_latch, /*!< in: RW_S_LATCH, RW_X_LATCH */
 
48
        mtr_t*          mtr);   /*!< in: mtr handle */
 
49
 
 
50
#ifndef UNIV_NONINL
 
51
#include "fut0fut.ic"
 
52
#endif
 
53
 
 
54
#endif
 
55