Commit 0715fae1 authored by unknown's avatar unknown

Fixed a problem with Innodb_buffer_pool_pages_latched status variable.


innobase/buf/buf0buf.c:
  Added a sanity check for buffer_pool_pages_latched status variable.
  The lack of this check resulted in weird result on windows.
parent f39d77fd
......@@ -2152,7 +2152,8 @@ buf_get_latched_pages_number(void)
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++;
}
......
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