mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
(buf0flu.c:136) Bug#55227 Fix compiler warnings in innodb with gcc 4.6
This commit is contained in:
parent
31d79a481e
commit
2460ca43d9
1 changed files with 7 additions and 1 deletions
|
@ -133,12 +133,18 @@ buf_flush_delete_from_flush_rbt(
|
||||||
/*============================*/
|
/*============================*/
|
||||||
buf_page_t* bpage) /*!< in: bpage to be removed. */
|
buf_page_t* bpage) /*!< in: bpage to be removed. */
|
||||||
{
|
{
|
||||||
|
#ifdef UNIV_DEBUG
|
||||||
ibool ret = FALSE;
|
ibool ret = FALSE;
|
||||||
|
#endif /* UNIV_DEBUG */
|
||||||
buf_pool_t* buf_pool = buf_pool_from_bpage(bpage);
|
buf_pool_t* buf_pool = buf_pool_from_bpage(bpage);
|
||||||
|
|
||||||
ut_ad(buf_flush_list_mutex_own(buf_pool));
|
ut_ad(buf_flush_list_mutex_own(buf_pool));
|
||||||
|
|
||||||
ret = rbt_delete(buf_pool->flush_rbt, &bpage);
|
#ifdef UNIV_DEBUG
|
||||||
|
ret =
|
||||||
|
#endif /* UNIV_DEBUG */
|
||||||
|
rbt_delete(buf_pool->flush_rbt, &bpage);
|
||||||
|
|
||||||
ut_ad(ret);
|
ut_ad(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue