~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

merged with up to date trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1995, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (C) 1995, 2010, 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
84
84
        ib_uint64_t     newest_lsn);    /*!< in: newest modification lsn
85
85
                                        to the page */
86
86
#ifndef UNIV_HOTBACKUP
 
87
# if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG
 
88
/********************************************************************//**
 
89
Writes a flushable page asynchronously from the buffer pool to a file.
 
90
NOTE: buf_pool->mutex and block->mutex must be held upon entering this
 
91
function, and they will be released by this function after flushing.
 
92
This is loosely based on buf_flush_batch() and buf_flush_page().
 
93
@return TRUE if the page was flushed and the mutexes released */
 
94
UNIV_INTERN
 
95
ibool
 
96
buf_flush_page_try(
 
97
/*===============*/
 
98
        buf_pool_t*     buf_pool,       /*!< in/out: buffer pool instance */
 
99
        buf_block_t*    block)          /*!< in/out: buffer control block */
 
100
        __attribute__((nonnull, warn_unused_result));
 
101
# endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */
87
102
/*******************************************************************//**
88
103
This utility flushes dirty blocks from the end of the LRU list.
89
104
NOTE: The calling thread may own latches to pages: to avoid deadlocks,