Commit c2b0ebb5 authored by Calvin Sun's avatar Calvin Sun

mysql-trunk-innodb: fix compile errors on Windows with UNIV_DEBUG defined.

parent 6788201e
...@@ -1037,12 +1037,14 @@ buf_flush_write_block_low( ...@@ -1037,12 +1037,14 @@ buf_flush_write_block_low(
/*======================*/ /*======================*/
buf_page_t* bpage) /*!< in: buffer block to write */ buf_page_t* bpage) /*!< in: buffer block to write */
{ {
ulint zip_size = buf_page_get_zip_size(bpage);
page_t* frame = NULL;
#ifdef UNIV_DEBUG #ifdef 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_pool_mutex_own(buf_pool)); ut_ad(!buf_pool_mutex_own(buf_pool));
#endif #endif
ulint zip_size = buf_page_get_zip_size(bpage);
page_t* frame = NULL;
#ifdef UNIV_LOG_DEBUG #ifdef UNIV_LOG_DEBUG
static ibool univ_log_debug_warned; static ibool univ_log_debug_warned;
#endif /* UNIV_LOG_DEBUG */ #endif /* UNIV_LOG_DEBUG */
......
...@@ -350,10 +350,13 @@ rw_lock_validate( ...@@ -350,10 +350,13 @@ rw_lock_validate(
/*=============*/ /*=============*/
rw_lock_t* lock) /*!< in: rw-lock */ rw_lock_t* lock) /*!< in: rw-lock */
{ {
ulint waiters;
lint lock_word;
ut_a(lock); ut_a(lock);
ulint waiters = rw_lock_get_waiters(lock); waiters = rw_lock_get_waiters(lock);
lint lock_word = lock->lock_word; lock_word = lock->lock_word;
ut_a(lock->magic_n == RW_LOCK_MAGIC_N); ut_a(lock->magic_n == RW_LOCK_MAGIC_N);
ut_a(waiters == 0 || waiters == 1); ut_a(waiters == 0 || waiters == 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment