Commit 7c046c3c authored by petr@mysql.com's avatar petr@mysql.com

Fixed a problem with Innodb_buffer_pool_pages_latched status variable.

parent ad2bd09d
...@@ -2152,7 +2152,8 @@ buf_get_latched_pages_number(void) ...@@ -2152,7 +2152,8 @@ buf_get_latched_pages_number(void)
block = buf_pool_get_nth_block(buf_pool, i); block = buf_pool_get_nth_block(buf_pool, i);
if ((block->buf_fix_count != 0) || (block->io_fix != 0)) if (((block->buf_fix_count != 0) || (block->io_fix != 0)) &&
block->magic_n == BUF_BLOCK_MAGIC_N )
fixed_pages_number++; fixed_pages_number++;
} }
......
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