mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +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:
@@ -5334,6 +5334,13 @@ inline bool add_group_to_list(THD *thd, Item *item, bool asc)
|
||||
return thd->lex->current_select->add_group_to_list(thd, item, asc);
|
||||
}
|
||||
|
||||
inline Item *and_conds(THD *thd, Item *a, Item *b)
|
||||
{
|
||||
if (!b) return a;
|
||||
if (!a) return b;
|
||||
return new (thd->mem_root) Item_cond_and(thd, a, b);
|
||||
}
|
||||
|
||||
/* inline handler methods that need to know TABLE and THD structures */
|
||||
inline void handler::increment_statistics(ulong SSV::*offset) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user