mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Stage 2 of MDEV-6152:
- Added mem_root to all calls to new Item - Added private method operator new(size_t size) to Item to ensure that we always use a mem_root when creating an item. This saves use once call to current_thd per Item creation
This commit is contained in:
@ -1852,7 +1852,7 @@ int join_read_record_no_init(JOIN_TAB *tab);
|
||||
void set_position(JOIN *join,uint idx,JOIN_TAB *table,KEYUSE *key);
|
||||
inline Item * and_items(THD *thd, Item* cond, Item *item)
|
||||
{
|
||||
return (cond ? (new Item_cond_and(thd, cond, item)) : item);
|
||||
return (cond ? (new (thd->mem_root) Item_cond_and(thd, cond, item)) : item);
|
||||
}
|
||||
bool choose_plan(JOIN *join, table_map join_tables);
|
||||
void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab,
|
||||
|
Reference in New Issue
Block a user