Commit a4c689fb 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 2abbd21f
...@@ -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