mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
cleanup: use my_multi_malloc(), etc
This commit is contained in:
@ -17490,8 +17490,7 @@ create_tmp_table(THD *thd, TMP_TABLE_PARAM *param, List<Item> &fields,
|
||||
No need to change table name to lower case as we are only creating
|
||||
MyISAM, Aria or HEAP tables here
|
||||
*/
|
||||
fn_format(path, path, mysql_tmpdir, "",
|
||||
MY_REPLACE_EXT|MY_UNPACK_FILENAME);
|
||||
fn_format(path, path, mysql_tmpdir, "", MY_REPLACE_EXT|MY_UNPACK_FILENAME);
|
||||
|
||||
if (group)
|
||||
{
|
||||
@ -18673,14 +18672,10 @@ bool create_internal_tmp_table(TABLE *table, KEY *keyinfo,
|
||||
}
|
||||
}
|
||||
|
||||
if (unlikely((error= maria_create(share->path.str,
|
||||
file_type,
|
||||
share->keys, &keydef,
|
||||
(uint) (*recinfo-start_recinfo),
|
||||
start_recinfo,
|
||||
share->uniques, &uniquedef,
|
||||
&create_info,
|
||||
create_flags))))
|
||||
if (unlikely((error= maria_create(share->path.str, file_type, share->keys,
|
||||
&keydef, (uint) (*recinfo-start_recinfo),
|
||||
start_recinfo, share->uniques, &uniquedef,
|
||||
&create_info, create_flags))))
|
||||
{
|
||||
table->file->print_error(error,MYF(0)); /* purecov: inspected */
|
||||
table->db_stat=0;
|
||||
@ -18881,8 +18876,7 @@ create_internal_tmp_table_from_heap(THD *thd, TABLE *table,
|
||||
if (is_duplicate)
|
||||
*is_duplicate= FALSE;
|
||||
|
||||
if (table->s->db_type() != heap_hton ||
|
||||
error != HA_ERR_RECORD_FILE_FULL)
|
||||
if (table->s->db_type() != heap_hton || error != HA_ERR_RECORD_FILE_FULL)
|
||||
{
|
||||
/*
|
||||
We don't want this error to be converted to a warning, e.g. in case of
|
||||
|
Reference in New Issue
Block a user