1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Merge bb-10.2-ext into 10.3

This commit is contained in:
Marko Mäkelä
2017-09-25 22:05:56 +03:00
140 changed files with 858 additions and 323 deletions

View File

@@ -27,11 +27,13 @@ class Sql_alloc
public:
static void *operator new(size_t size) throw ()
{
return thd_alloc(thd_get_current_thd(), size);
DBUG_ASSERT(size < UINT_MAX32);
return thd_alloc(thd_get_current_thd(), uint(size));
}
static void *operator new[](size_t size) throw ()
{
return thd_alloc(thd_get_current_thd(), size);
DBUG_ASSERT(size < UINT_MAX32);
return thd_alloc(thd_get_current_thd(), uint(size));
}
static void *operator new[](size_t size, MEM_ROOT *mem_root) throw ()
{ return alloc_root(mem_root, size); }