~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 14:32:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328143236-4ge1d793iqaktfq0
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
Created 11/5/1995 Heikki Tuuri
24
24
*******************************************************/
25
25
 
 
26
#pragma once
26
27
#ifndef buf0flu_h
27
28
#define buf0flu_h
28
29
 
84
85
        ib_uint64_t     newest_lsn);    /*!< in: newest modification lsn
85
86
                                        to the page */
86
87
#ifndef UNIV_HOTBACKUP
 
88
# if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG
 
89
/********************************************************************//**
 
90
Writes a flushable page asynchronously from the buffer pool to a file.
 
91
NOTE: buf_pool->mutex and block->mutex must be held upon entering this
 
92
function, and they will be released by this function after flushing.
 
93
This is loosely based on buf_flush_batch() and buf_flush_page().
 
94
@return TRUE if the page was flushed and the mutexes released */
 
95
UNIV_INTERN
 
96
ibool
 
97
buf_flush_page_try(
 
98
/*===============*/
 
99
        buf_pool_t*     buf_pool,       /*!< in/out: buffer pool instance */
 
100
        buf_block_t*    block)          /*!< in/out: buffer control block */
 
101
        __attribute__((nonnull, warn_unused_result));
 
102
# endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */
87
103
/*******************************************************************//**
88
104
This utility flushes dirty blocks from the end of the LRU list.
89
105
NOTE: The calling thread may own latches to pages: to avoid deadlocks,