~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber at stabletransit
  • Date: 2010-10-12 20:53:47 UTC
  • mfrom: (1842.1.3 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101012205347-zzg0en7nughfhven
Merge Monty - add valgrind stripping program to the tree, suppress size_t signature change
Merge Travis - File: /drizzled/xid.h. Changed struct name of 'st_drizzle_xid' to 'drizzle_xid', changed it to a C++ class and added constructor initialization list
Merge Brian - adding more documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 */