mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Merge mysql.com:/home/svoj/devel/mysql/BUG31277/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG31277/mysql-5.1-engines include/mysql_com.h: Auto merged sql-common/client.c: Auto merged sql/mysql_priv.h: Auto merged storage/myisam/mi_open.c: Auto merged storage/myisam/mi_packrec.c: Auto merged mysql-test/mysql-test-run.pl: Manual merge. storage/myisam/mi_check.c: Manual merge. storage/myisam/myisamchk.c: Manual merge.
This commit is contained in:
commit
9013311126
7 changed files with 108 additions and 24 deletions
|
|
@ -697,8 +697,11 @@ uchar *mi_alloc_rec_buff(MI_INFO *info, ulong length, uchar **buf)
|
|||
/* to simplify initial init of info->rec_buf in mi_open and mi_extra */
|
||||
if (length == (ulong) -1)
|
||||
{
|
||||
length= max(info->s->base.pack_reclength,
|
||||
info->s->base.max_key_length);
|
||||
if (info->s->options & HA_OPTION_COMPRESS_RECORD)
|
||||
length= max(info->s->base.pack_reclength, info->s->max_pack_length);
|
||||
else
|
||||
length= info->s->base.pack_reclength;
|
||||
length= max(length, info->s->base.max_key_length);
|
||||
/* Avoid unnecessary realloc */
|
||||
if (newptr && length == old_length)
|
||||
return newptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue