Commit 1f6af850 authored by marko's avatar marko

branches/zip: Remove bogus debug assertions.

buf_block_get_space(), buf_block_get_page_no():
Remove ut_ad(block->buf_fix_count > 0), because since r1052
these functions are also used in low-level code.
parent c5be47e7
...@@ -187,7 +187,6 @@ buf_block_get_space( ...@@ -187,7 +187,6 @@ buf_block_get_space(
{ {
ut_ad(block); ut_ad(block);
ut_a(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE); ut_a(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE);
ut_ad(block->buf_fix_count > 0);
return(block->space); return(block->space);
} }
...@@ -203,7 +202,6 @@ buf_block_get_page_no( ...@@ -203,7 +202,6 @@ buf_block_get_page_no(
{ {
ut_ad(block); ut_ad(block);
ut_a(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE); ut_a(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE);
ut_ad(block->buf_fix_count > 0);
return(block->offset); return(block->offset);
} }
......
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