branches/zip: Replace buf_pool->max_size with buf_pool->curr_size in

debug assertions.  This was forgotten from r977.
This commit is contained in:
marko 2006-10-30 15:38:58 +00:00
parent d266262af6
commit 73a33e7100

View file

@ -53,7 +53,7 @@ buf_pool_get_nth_block(
ulint i) /* in: index of the block */
{
ut_ad(buf_pool);
ut_ad(i < buf_pool->max_size);
ut_ad(i < buf_pool->curr_size);
return(i + buf_pool->blocks);
}
@ -115,7 +115,7 @@ buf_block_get_frame(
{
ut_ad(block);
ut_ad(block >= buf_pool->blocks);
ut_ad(block < buf_pool->blocks + buf_pool->max_size);
ut_ad(block < buf_pool->blocks + buf_pool->curr_size);
ut_ad(block->state != BUF_BLOCK_NOT_USED);
ut_ad((block->state != BUF_BLOCK_FILE_PAGE)
|| (block->buf_fix_count > 0));
@ -134,7 +134,7 @@ buf_block_get_space(
{
ut_ad(block);
ut_ad(block >= buf_pool->blocks);
ut_ad(block < buf_pool->blocks + buf_pool->max_size);
ut_ad(block < buf_pool->blocks + buf_pool->curr_size);
ut_a(block->state == BUF_BLOCK_FILE_PAGE);
ut_ad(block->buf_fix_count > 0);
@ -152,7 +152,7 @@ buf_block_get_page_no(
{
ut_ad(block);
ut_ad(block >= buf_pool->blocks);
ut_ad(block < buf_pool->blocks + buf_pool->max_size);
ut_ad(block < buf_pool->blocks + buf_pool->curr_size);
ut_a(block->state == BUF_BLOCK_FILE_PAGE);
ut_ad(block->buf_fix_count > 0);