~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/fut0fut.ic

  • Committer: Brian Aker
  • Date: 2009-01-07 09:27:07 UTC
  • Revision ID: brian@tangent.org-20090107092707-bn67qpdllfcyh3j9
Removing dead field translator code.

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., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/******************************************************************//**
20
 
@file include/fut0fut.ic
 
1
/**********************************************************************
21
2
File-based utilities
22
3
 
 
4
(c) 1995 Innobase Oy
 
5
 
23
6
Created 12/13/1995 Heikki Tuuri
24
7
***********************************************************************/
25
8
 
26
9
#include "sync0rw.h"
27
10
#include "buf0buf.h"
28
11
 
29
 
/********************************************************************//**
30
 
Gets a pointer to a file address and latches the page.
31
 
@return pointer to a byte in a frame; the file page in the frame is
32
 
bufferfixed and latched */
 
12
/************************************************************************
 
13
Gets a pointer to a file address and latches the page. */
33
14
UNIV_INLINE
34
15
byte*
35
16
fut_get_ptr(
36
17
/*========*/
37
 
        ulint           space,  /*!< in: space id */
38
 
        ulint           zip_size,/*!< in: compressed page size in bytes
 
18
                                /* out: pointer to a byte in a frame; the file
 
19
                                page in the frame is bufferfixed and latched */
 
20
        ulint           space,  /* in: space id */
 
21
        ulint           zip_size,/* in: compressed page size in bytes
39
22
                                or 0 for uncompressed pages */
40
 
        fil_addr_t      addr,   /*!< in: file address */
41
 
        ulint           rw_latch, /*!< in: RW_S_LATCH, RW_X_LATCH */
42
 
        mtr_t*          mtr)    /*!< in: mtr handle */
 
23
        fil_addr_t      addr,   /* in: file address */
 
24
        ulint           rw_latch, /* in: RW_S_LATCH, RW_X_LATCH */
 
25
        mtr_t*          mtr)    /* in: mtr handle */
43
26
{
44
27
        buf_block_t*    block;
45
28
        byte*           ptr;