~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/btr0btr.ic

  • Committer: Patrick Crews
  • Date: 2010-12-07 20:02:50 UTC
  • Revision ID: gleebix@gmail.com-20101207200250-6a27jgqalgw5bsb5
Added disabled.def file to disable drizzleslap due to Bug#684269.  Need to skip for tarball release this round

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1994, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
39
39
Gets a buffer page and declares its latching order level. */
40
40
UNIV_INLINE
41
41
buf_block_t*
42
 
btr_block_get_func(
43
 
/*===============*/
44
 
        ulint           space,          /*!< in: space id */
45
 
        ulint           zip_size,       /*!< in: compressed page size in bytes
46
 
                                        or 0 for uncompressed pages */
47
 
        ulint           page_no,        /*!< in: page number */
48
 
        ulint           mode,           /*!< in: latch mode */
49
 
        const char*     file,           /*!< in: file name */
50
 
        ulint           line,           /*!< in: line where called */
51
 
        mtr_t*          mtr)            /*!< in/out: mtr */
 
42
btr_block_get(
 
43
/*==========*/
 
44
        ulint   space,          /*!< in: space id */
 
45
        ulint   zip_size,       /*!< in: compressed page size in bytes
 
46
                                or 0 for uncompressed pages */
 
47
        ulint   page_no,        /*!< in: page number */
 
48
        ulint   mode,           /*!< in: latch mode */
 
49
        mtr_t*  mtr)            /*!< in: mtr */
52
50
{
53
51
        buf_block_t*    block;
54
52
 
55
 
        block = buf_page_get_gen(space, zip_size, page_no, mode,
56
 
                                 NULL, BUF_GET, file, line, mtr);
 
53
        block = buf_page_get(space, zip_size, page_no, mode, mtr);
57
54
 
58
55
        if (mode != RW_NO_LATCH) {
59
56
 
64
61
}
65
62
 
66
63
/**************************************************************//**
 
64
Gets a buffer page and declares its latching order level. */
 
65
UNIV_INLINE
 
66
page_t*
 
67
btr_page_get(
 
68
/*=========*/
 
69
        ulint   space,          /*!< in: space id */
 
70
        ulint   zip_size,       /*!< in: compressed page size in bytes
 
71
                                or 0 for uncompressed pages */
 
72
        ulint   page_no,        /*!< in: page number */
 
73
        ulint   mode,           /*!< in: latch mode */
 
74
        mtr_t*  mtr)            /*!< in: mtr */
 
75
{
 
76
        return(buf_block_get_frame(btr_block_get(space, zip_size, page_no,
 
77
                                                 mode, mtr)));
 
78
}
 
79
 
 
80
/**************************************************************//**
67
81
Sets the index id field of a page. */
68
82
UNIV_INLINE
69
83
void