Commit 1a103f03 authored by marko's avatar marko

branches/zip: buf_LRU_get_free_block(): Add an UNIV_UNLIKELY hint

around zip_size.  zip_size will be 0 most of the time.
parent d3a813fd
...@@ -491,7 +491,7 @@ buf_LRU_get_free_block( ...@@ -491,7 +491,7 @@ buf_LRU_get_free_block(
block->page.zip.m_nonempty = block->page.zip.m_nonempty =
block->page.zip.n_blobs = 0; block->page.zip.n_blobs = 0;
if (zip_size) { if (UNIV_UNLIKELY(zip_size)) {
ibool lru; ibool lru;
page_zip_set_size(&block->page.zip, zip_size); page_zip_set_size(&block->page.zip, zip_size);
block->page.zip.data = buf_buddy_alloc(zip_size, &lru); block->page.zip.data = buf_buddy_alloc(zip_size, &lru);
......
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