mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
my_alloc.c
- Changed 0x%lx -> %p array.c: - Static (preallocated) buffer can now be anywhere my_sys.h - Define MY_INIT_BUFFER_USED sql_delete.cc & sql_lex.cc - Use memroot when allocating classes (avoids call to current_thd) sql_explain.h: - Use preallocated buffers sql_explain.cc: - Use preallocated buffers and memroot sql_select.cc: - Use multi_alloc_root() instead of many alloc_root() - Update calls to Explain
This commit is contained in:
@@ -612,7 +612,7 @@ create_insert_stmt_from_insert_delayed(THD *thd, String *buf)
|
||||
|
||||
static void save_insert_query_plan(THD* thd, TABLE_LIST *table_list)
|
||||
{
|
||||
Explain_insert* explain= new Explain_insert;
|
||||
Explain_insert* explain= new (thd->mem_root) Explain_insert(thd->mem_root);
|
||||
explain->table_name.append(table_list->table->alias);
|
||||
|
||||
thd->lex->explain->add_insert_plan(explain);
|
||||
|
Reference in New Issue
Block a user