summaryrefslogtreecommitdiff
path: root/myisam/mi_page.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-10-02 05:53:00 +0300
committermonty@hundin.mysql.fi <>2001-10-02 05:53:00 +0300
commit880026ccf667bf6e6adbd6cfa0abcf4268d68e4c (patch)
treeb029d516fe4b48e540f64b01492d64cf5d68ad2f /myisam/mi_page.c
parentb5622e11dd4122959ec3deeac12686ff573a4f77 (diff)
downloadmariadb-git-880026ccf667bf6e6adbd6cfa0abcf4268d68e4c.tar.gz
Cleaned up SSL documentation
Fixes for embedded server Made key_cache more configurable Fixed that one can change key blocksize in MyISAM A lot of optimizations to make MyISAM slightly faster
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);