Commit 26afd174 authored by marko's avatar marko

buf_flush_batch(): Remove the test page_count != ULINT_UNDEFINED.

The variable is initialized to zero, and after that it is only added to.
Maybe the one who introduced the variable srv_buf_pool_flushed overlooked
that there is a separate return statement for returning ULINT_UNDEFINED?
parent aa9fbf89
...@@ -977,8 +977,7 @@ buf_flush_batch( ...@@ -977,8 +977,7 @@ buf_flush_batch(
} }
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
if (page_count != ULINT_UNDEFINED) srv_buf_pool_flushed += page_count;
srv_buf_pool_flushed+= page_count;
return(page_count); return(page_count);
} }
......
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