summaryrefslogtreecommitdiff
path: root/innobase/include/buf0buf.ic
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-12-06 01:16:28 +0200
committerunknown <monty@hundin.mysql.fi>2001-12-06 01:16:28 +0200
commitb5cfb7ac01dd00715060470805859a51d6f2caf5 (patch)
tree72b6ce45de206772ff694d62b41d9fc5a16edbe8 /innobase/include/buf0buf.ic
parentff8c7348648b2a2e1ce14d8332c065a38a43ca0c (diff)
parent6f8f45e9592aa7f2ca48168d51e1624cce158797 (diff)
downloadmariadb-git-b5cfb7ac01dd00715060470805859a51d6f2caf5.tar.gz
merge with 3.23.47
Docs/manual.texi: Auto merged Build-tools/Do-compile: Auto merged innobase/include/buf0buf.ic: Auto merged myisam/mi_locking.c: Auto merged mysql-test/t/join_outer.test: Auto merged mysys/my_init.c: Auto merged scripts/mysql_config.sh: Auto merged mysql-test/t/myisam.test: Auto merged sql/ha_innobase.h: Auto merged sql/handler.h: Auto merged configure.in: merge mysql-test/r/innodb.result: merge mysql-test/r/join_outer.result: merge mysql-test/r/myisam.result: merge mysql-test/t/innodb.test: merge mysys/mf_iocache2.c: Skip changes in 3.23 sql/sql_select.cc: merge
Diffstat (limited to 'innobase/include/buf0buf.ic')
-rw-r--r--innobase/include/buf0buf.ic10
1 files changed, 8 insertions, 2 deletions
diff --git a/innobase/include/buf0buf.ic b/innobase/include/buf0buf.ic
index 49f6dc59503..52bee0eb282 100644
--- a/innobase/include/buf0buf.ic
+++ b/innobase/include/buf0buf.ic
@@ -211,6 +211,9 @@ buf_block_align(
block = buf_pool_get_nth_block(buf_pool, (ptr - frame_zero)
>> UNIV_PAGE_SIZE_SHIFT);
+ ut_a(block >= buf_pool->blocks);
+ ut_a(block < buf_pool->blocks + buf_pool->max_size);
+
return(block);
}
@@ -235,6 +238,9 @@ buf_block_align_low(
block = buf_pool_get_nth_block(buf_pool, (ptr - frame_zero)
>> UNIV_PAGE_SIZE_SHIFT);
+ ut_a(block >= buf_pool->blocks);
+ ut_a(block < buf_pool->blocks + buf_pool->max_size);
+
return(block);
}
@@ -253,9 +259,9 @@ buf_frame_align(
frame = ut_align_down(ptr, UNIV_PAGE_SIZE);
- ut_ad((ulint)frame
+ ut_a((ulint)frame
>= (ulint)(buf_pool_get_nth_block(buf_pool, 0)->frame));
- ut_ad((ulint)frame <= (ulint)(buf_pool_get_nth_block(buf_pool,
+ ut_a((ulint)frame <= (ulint)(buf_pool_get_nth_block(buf_pool,
buf_pool->max_size - 1)->frame));
return(frame);
}