buf0buf.ic   buf0buf.ic 
skipping to change at line 363 skipping to change at line 363
return(&buf_pool->zip_mutex); return(&buf_pool->zip_mutex);
default: default:
return(&((buf_block_t*) bpage)->mutex); return(&((buf_block_t*) bpage)->mutex);
} }
} }
/*********************************************************************//** /*********************************************************************//**
Get the flush type of a page. Get the flush type of a page.
@return flush type */ @return flush type */
UNIV_INLINE UNIV_INLINE
enum buf_flush buf_flush_t
buf_page_get_flush_type( buf_page_get_flush_type(
/*====================*/ /*====================*/
const buf_page_t* bpage) /*!< in: buffer page */ const buf_page_t* bpage) /*!< in: buffer page */
{ {
enum buf_flush flush_type = (enum buf_flush) bpage->flush_type; buf_flush_t flush_type = (buf_flush_t) bpage->flush_type;
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
switch (flush_type) { switch (flush_type) {
case BUF_FLUSH_LRU: case BUF_FLUSH_LRU:
case BUF_FLUSH_LIST: case BUF_FLUSH_LIST:
case BUF_FLUSH_SINGLE_PAGE: case BUF_FLUSH_SINGLE_PAGE:
return(flush_type); return(flush_type);
case BUF_FLUSH_N_TYPES: case BUF_FLUSH_N_TYPES:
ut_error; ut_error;
} }
skipping to change at line 390 skipping to change at line 390
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
return(flush_type); return(flush_type);
} }
/*********************************************************************//** /*********************************************************************//**
Set the flush type of a page. */ Set the flush type of a page. */
UNIV_INLINE UNIV_INLINE
void void
buf_page_set_flush_type( buf_page_set_flush_type(
/*====================*/ /*====================*/
buf_page_t* bpage, /*!< in: buffer page */ buf_page_t* bpage, /*!< in: buffer page */
enum buf_flush flush_type) /*!< in: flush type */ buf_flush_t flush_type) /*!< in: flush type */
{ {
bpage->flush_type = flush_type; bpage->flush_type = flush_type;
ut_ad(buf_page_get_flush_type(bpage) == flush_type); ut_ad(buf_page_get_flush_type(bpage) == flush_type);
} }
/*********************************************************************//** /*********************************************************************//**
Map a block to a file page. */ Map a block to a file page. */
UNIV_INLINE UNIV_INLINE
void void
buf_block_set_file_page( buf_block_set_file_page(
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/