From 1e24cdc85be16d08bb079979ab5131e311542b80 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 8 Sep 2013 11:36:34 +0200 Subject: fix for xtradb to compile on windows --- storage/xtradb/buf/buf0buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/xtradb/buf/buf0buf.c b/storage/xtradb/buf/buf0buf.c index 996731aa406..91c5fbcbba9 100644 --- a/storage/xtradb/buf/buf0buf.c +++ b/storage/xtradb/buf/buf0buf.c @@ -4065,14 +4065,14 @@ retry_mutex: mutex_enter(&buf_pool->LRU_list_mutex); block_mutex = buf_page_get_mutex_enter(bpage); ut_a(block_mutex); - if (UNIV_UNLIKELY(io_type == BUF_IO_WRITE + if (io_type == BUF_IO_WRITE && ( #if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG buf_page_get_state(bpage) == BUF_BLOCK_ZIP_DIRTY || #endif buf_page_get_flush_type(bpage) == BUF_FLUSH_LRU) - && !have_LRU_mutex)) { + && !have_LRU_mutex) { mutex_exit(block_mutex); have_LRU_mutex = TRUE; -- cgit v1.2.1