~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/buf0rea.h

  • Committer: lbieber
  • Date: 2010-10-05 22:23:12 UTC
  • mfrom: (1813.1.4 build)
  • Revision ID: lbieber@orisndriz08-20101005222312-weuq0ardk3gcryau
Merge Travis - 621861 - convert structs to classes
Merge Billy - 621331 - Replace use of stringstream with boost::lexical_cast
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle
Merge Andrew - fix bug 653300 - Syntax error on inport of a SQL file produced by drizzledump

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1995, 2009, 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
33
33
High-level function which reads a page asynchronously from a file to the
34
34
buffer buf_pool if it is not already there. Sets the io_fix flag and sets
35
35
an exclusive lock on the buffer frame. The flag is cleared and the x-lock
36
 
released by the i/o-handler thread.
37
 
@return TRUE if page has been read in, FALSE in case of failure */
 
36
released by the i/o-handler thread. Does a random read-ahead if it seems
 
37
sensible.
 
38
@return number of page read requests issued: this can be greater than
 
39
1 if read-ahead occurred */
38
40
UNIV_INTERN
39
 
ibool
 
41
ulint
40
42
buf_read_page(
41
43
/*==========*/
42
44
        ulint   space,  /*!< in: space id */
124
126
 
125
127
/** The size in pages of the area which the read-ahead algorithms read if
126
128
invoked */
127
 
#define BUF_READ_AHEAD_AREA(b)                                  \
128
 
        ut_min(64, ut_2_power_up((b)->curr_size / 32))
 
129
#define BUF_READ_AHEAD_AREA                                     \
 
130
        ut_min(64, ut_2_power_up(buf_pool->curr_size / 32))
129
131
 
130
132
/** @name Modes used in read-ahead @{ */
131
133
/** read only pages belonging to the insert buffer tree */