~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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,