summaryrefslogtreecommitdiff
path: root/myisam/mi_page.c
diff options
context:
space:
mode:
Diffstat (limited to 'myisam/mi_page.c')
-rw-r--r--myisam/mi_page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_page.c b/myisam/mi_page.c
index f8e2a977754..d62970c7d98 100644
--- a/myisam/mi_page.c
+++ b/myisam/mi_page.c
@@ -64,9 +64,9 @@ int _mi_write_keypage(register MI_INFO *info, register MI_KEYDEF *keyinfo,
#ifndef FAST /* Safety check */
if (page < info->s->base.keystart ||
page+keyinfo->block_length > info->state->key_file_length ||
- page & (myisam_block_size-1))
+ (page & (MI_MIN_KEY_BLOCK_LENGTH-1)))
{
- DBUG_PRINT("error",("Trying to write outside key region: %lu",
+ DBUG_PRINT("error",("Trying to write inside key status region: %lu",
(long) page));
my_errno=EINVAL;
return(-1);