mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
addresses #1663
double a buffer size git-svn-id: file:///svn/mysql/tokudb-engine/src@11172 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
331592c7c1
commit
e7f33e8894
1 changed files with 2 additions and 2 deletions
|
@ -3734,7 +3734,7 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in
|
|||
|
||||
|
||||
bzero(&row_descriptor, sizeof(row_descriptor));
|
||||
row_desc_buff = (uchar *)my_malloc((table_share->fields * 6)+10 ,MYF(MY_WME));
|
||||
row_desc_buff = (uchar *)my_malloc(2*(table_share->fields * 6)+10 ,MYF(MY_WME));
|
||||
if (row_desc_buff == NULL){ error = ENOMEM; goto cleanup;}
|
||||
|
||||
dirname = (char *)my_malloc(get_name_length(name) + NAME_CHAR_LEN,MYF(MY_WME));
|
||||
|
@ -4330,7 +4330,7 @@ int ha_tokudb::add_index(TABLE *table_arg, KEY *key_info, uint num_of_keys) {
|
|||
tmp_prim_key_buff = (uchar *)my_malloc(2*table_arg->s->rec_buff_length, MYF(MY_WME));
|
||||
tmp_record = (uchar *)my_malloc(table_arg->s->rec_buff_length,MYF(MY_WME));
|
||||
tmp_record2 = (uchar *)my_malloc(2*table_arg->s->rec_buff_length,MYF(MY_WME));
|
||||
row_desc_buff = (uchar *)my_malloc((table_share->fields * 6)+10 ,MYF(MY_WME));
|
||||
row_desc_buff = (uchar *)my_malloc(2*(table_share->fields * 6)+10 ,MYF(MY_WME));
|
||||
if (newname == NULL ||
|
||||
tmp_key_buff == NULL ||
|
||||
tmp_prim_key_buff == NULL ||
|
||||
|
|
Loading…
Reference in a new issue