~ubuntu-branches/ubuntu/vivid/drizzle/vivid-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Tobias Frost
  • Date: 2013-08-22 20:18:31 UTC
  • mto: (20.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20130822201831-gn3ozsh7o7wmc5tk
Tags: upstream-7.2.3
ImportĀ upstreamĀ versionĀ 7.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
corresponding bits are set in the ibuf bitmap. */
38
38
#define IBUF_PAGE_SIZE_PER_FREE_SPACE   32
39
39
 
 
40
/***************************************************************//**
 
41
Starts an insert buffer mini-transaction. */
 
42
UNIV_INLINE
 
43
void
 
44
ibuf_mtr_start(
 
45
/*===========*/
 
46
        mtr_t*  mtr)    /*!< out: mini-transaction */
 
47
{
 
48
        mtr_start(mtr);
 
49
        mtr->inside_ibuf = TRUE;
 
50
}
 
51
/***************************************************************//**
 
52
Commits an insert buffer mini-transaction. */
 
53
UNIV_INLINE
 
54
void
 
55
ibuf_mtr_commit(
 
56
/*============*/
 
57
        mtr_t*  mtr)    /*!< in/out: mini-transaction */
 
58
{
 
59
        ut_ad(mtr->inside_ibuf);
 
60
        ut_d(mtr->inside_ibuf = FALSE);
 
61
        mtr_commit(mtr);
 
62
}
 
63
 
40
64
/** Insert buffer struct */
41
65
struct ibuf_struct{
42
66
        ulint           size;           /*!< current size of the ibuf index
120
144
        return(FALSE);
121
145
}
122
146
 
 
147
/******************************************************************//**
 
148
Returns TRUE if the current OS thread is performing an insert buffer
 
149
routine.
 
150
 
 
151
For instance, a read-ahead of non-ibuf pages is forbidden by threads
 
152
that are executing an insert buffer routine.
 
153
@return TRUE if inside an insert buffer routine */
 
154
UNIV_INLINE
 
155
ibool
 
156
ibuf_inside(
 
157
/*========*/
 
158
        const mtr_t*    mtr)    /*!< in: mini-transaction */
 
159
{
 
160
        return(mtr->inside_ibuf);
 
161
}
 
162
 
123
163
/***********************************************************************//**
124
164
Checks if a page address is an ibuf bitmap page address.
125
165
@return TRUE if a bitmap page */