diff options
author | monty@hundin.mysql.fi <> | 2001-09-04 01:25:34 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-09-04 01:25:34 +0300 |
commit | 0b2af6bdfdea07361a53fcdb2b3123f7db7ad0b4 (patch) | |
tree | c0eafd444d485cadb6d63aa0e7039389526e282c /myisam | |
parent | 3a3d1e28e5c6966c4e8b740443869f9857a557b3 (diff) | |
download | mariadb-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')
-rw-r--r-- | myisam/mi_check.c | 2 | ||||
-rw-r--r-- | myisam/mi_dynrec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 587f90e0929..aedea3ca78b 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -2480,7 +2480,7 @@ int sort_write_record(SORT_INFO *sort_info) info->checksum=mi_checksum(info,sort_info->record); reclength=_mi_rec_pack(info,from,sort_info->record); info->s->state.checksum+=info->checksum; - block_length=reclength+ 3 +test(reclength > 65532L); + block_length=reclength+ 3 + test(reclength >= (65520-3)); if (block_length < share->base.min_block_length) block_length=share->base.min_block_length; flag=0; 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 |