summaryrefslogtreecommitdiff
path: root/myisam/mi_dynrec.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-04 01:25:34 +0300
committermonty@hundin.mysql.fi <>2001-09-04 01:25:34 +0300
commit0b2af6bdfdea07361a53fcdb2b3123f7db7ad0b4 (patch)
treec0eafd444d485cadb6d63aa0e7039389526e282c /myisam/mi_dynrec.c
parent3a3d1e28e5c6966c4e8b740443869f9857a557b3 (diff)
downloadmariadb-git-0b2af6bdfdea07361a53fcdb2b3123f7db7ad0b4.tar.gz
Ensure that libmysqlclient doesn't use raid
Fix problem with MyISAM and rows of length 65517-65520
Diffstat (limited to 'myisam/mi_dynrec.c')
-rw-r--r--myisam/mi_dynrec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_dynrec.c b/myisam/mi_dynrec.c
index e090498f3fe..c9fe493744d 100644
--- a/myisam/mi_dynrec.c
+++ b/myisam/mi_dynrec.c
@@ -178,7 +178,7 @@ static int _mi_find_writepos(MI_INFO *info,
{
/* No deleted blocks; Allocate a new block */
*filepos=info->state->data_file_length;
- if ((*length=reclength+3 + test(reclength > 65520)) <
+ if ((*length=reclength+3 + test(reclength >= (65520-3))) <
info->s->base.min_block_length)
*length=info->s->base.min_block_length;
else