diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-09-25 14:57:56 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-09-25 14:57:56 -0400 |
commit | 4d33f9dca027e1f66f9898146533e8c1d612f2d1 (patch) | |
tree | 71c604ccf0a15f7d22ab19cda9f11833adedcb17 /mysys | |
parent | eac8e43541afdbc60b7e6c954d310db9b37db2d5 (diff) | |
parent | 13615c5e18eed62fa2dee80402dfebe3e74053c4 (diff) | |
download | mariadb-git-4d33f9dca027e1f66f9898146533e8c1d612f2d1.tar.gz |
Merge branch '5.5-galera' into 10.0-galera
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_alloc.c | 5 |
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; } |