~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

Viewing changes to storage/innobase/include/buf0lru.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
#define BUF_LRU_FREE_SEARCH_LEN(b)      (5 + 2 * BUF_READ_AHEAD_AREA(b))
65
65
 
66
66
/******************************************************************//**
67
 
Invalidates all pages belonging to a given tablespace when we are deleting
68
 
the data file(s) of that tablespace. A PROBLEM: if readahead is being started,
69
 
what guarantees that it will not try to read in pages after this operation has
70
 
completed? */
 
67
Removes all pages belonging to a given tablespace. */
71
68
UNIV_INTERN
72
69
void
73
 
buf_LRU_invalidate_tablespace(
 
70
buf_LRU_flush_or_remove_pages(
74
71
/*==========================*/
75
 
        ulint   id);    /*!< in: space id */
 
72
        ulint                   id,     /*!< in: space id */
 
73
        enum buf_remove_t       buf_remove);/*!< in: remove or flush
 
74
                                        strategy */
76
75
#if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
77
76
/********************************************************************//**
78
77
Insert a compressed block into buf_pool->zip_clean in the LRU order. */