diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-09-08 11:36:34 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-09-08 11:36:34 +0200 |
commit | 1e24cdc85be16d08bb079979ab5131e311542b80 (patch) | |
tree | 842e68d992dea696e3f3281664e73be358155cc3 | |
parent | dfc452217d4998bc22e9435cf55bf4e61fa0631a (diff) | |
download | mariadb-git-1e24cdc85be16d08bb079979ab5131e311542b80.tar.gz |
fix for xtradb to compile on windows
-rw-r--r-- | storage/xtradb/buf/buf0buf.c | 4 |
1 files 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; |