Commit 1490f879 authored by inaam's avatar inaam

branches/zip rb://159

In case of pages that are not made young the counter is incremented
only when the page in question is 'old'. In case of pages that are
made young the counter is incremented in case of all pages. For apple
to apple comparison this patch changes the 'young-making' counter to
consider only 'old' blocks.

Approved by: Marko
parent 164ba87e
......@@ -1273,7 +1273,10 @@ buf_LRU_make_block_young(
buf_page_t* bpage) /*!< in: control block */
{
ut_ad(buf_pool_mutex_own());
buf_pool->stat.n_pages_made_young++;
if (bpage->old) {
buf_pool->stat.n_pages_made_young++;
}
buf_LRU_remove_block(bpage);
buf_LRU_add_block_low(bpage, FALSE);
......
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