summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-09-25 14:57:56 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2015-09-25 14:57:56 -0400
commit4d33f9dca027e1f66f9898146533e8c1d612f2d1 (patch)
tree71c604ccf0a15f7d22ab19cda9f11833adedcb17 /mysys
parenteac8e43541afdbc60b7e6c954d310db9b37db2d5 (diff)
parent13615c5e18eed62fa2dee80402dfebe3e74053c4 (diff)
downloadmariadb-git-4d33f9dca027e1f66f9898146533e8c1d612f2d1.tar.gz
Merge branch '5.5-galera' into 10.0-galera
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_alloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysys/my_alloc.c b/mysys/my_alloc.c
index fc30185eb5a..f0ebad9cf30 100644
--- a/mysys/my_alloc.c
+++ b/mysys/my_alloc.c
@@ -104,6 +104,7 @@ void init_alloc_root(MEM_ROOT *mem_root, size_t block_size,
void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)))
{
+ DBUG_ENTER("reset_root_defaults");
DBUG_ASSERT(alloc_root_inited(mem_root));
mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) |
@@ -126,7 +127,7 @@ void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
{
/* We found a suitable block, no need to do anything else */
mem_root->pre_alloc= mem;
- return;
+ DBUG_VOID_RETURN;
}
if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size)
{
@@ -156,6 +157,8 @@ void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
else
#endif
mem_root->pre_alloc= 0;
+
+ DBUG_VOID_RETURN;
}