Commit 87e42d05 authored by marko's avatar marko

branches/zip: buf_page_io_query(): Shorten the code by using a local variable.

parent fdb017ff
......@@ -748,20 +748,17 @@ buf_page_io_query(
/* out: TRUE if io going on */
buf_page_t* bpage) /* in: buf_pool block, must be bufferfixed */
{
ibool io_fixed;
mutex_enter(&(buf_pool->mutex));
ut_ad(buf_page_in_file(bpage));
ut_ad(bpage->buf_fix_count > 0);
if (buf_page_get_io_fix(bpage) != BUF_IO_NONE) {
mutex_exit(&(buf_pool->mutex));
return(TRUE);
}
io_fixed = buf_page_get_io_fix(bpage) != BUF_IO_NONE;
mutex_exit(&(buf_pool->mutex));
return(FALSE);
return(io_fixed);
}
/************************************************************************
......
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