diff options
author | Marko Makela <mmakela@bk-internal.mysql.com> | 2010-04-29 15:41:47 +0200 |
---|---|---|
committer | Marko Makela <mmakela@bk-internal.mysql.com> | 2010-04-29 15:41:47 +0200 |
commit | c144a091dbbbcb0240e4f04a15e4d5ab52614308 (patch) | |
tree | 645883c7be60e2151d6421868753aff15e16c774 /storage | |
parent | f10cf420686e19f47039ac0b3a9f4f94f977961c (diff) | |
download | mariadb-git-c144a091dbbbcb0240e4f04a15e4d5ab52614308.tar.gz |
recv_sys_init(), recv_sys_empty_hash(): Shrink recv_sys->addr_hash.
This addresses Bug #53122 in the built-in InnoDB.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/innobase/log/log0recv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/log/log0recv.c b/storage/innobase/log/log0recv.c index 5d309768064..e6524eeefbf 100644 --- a/storage/innobase/log/log0recv.c +++ b/storage/innobase/log/log0recv.c @@ -167,7 +167,7 @@ recv_sys_init( recv_sys->len = 0; recv_sys->recovered_offset = 0; - recv_sys->addr_hash = hash_create(available_memory / 64); + recv_sys->addr_hash = hash_create(available_memory / 512); recv_sys->n_addrs = 0; recv_sys->apply_log_recs = FALSE; @@ -207,7 +207,7 @@ recv_sys_empty_hash(void) hash_table_free(recv_sys->addr_hash); mem_heap_empty(recv_sys->heap); - recv_sys->addr_hash = hash_create(buf_pool_get_curr_size() / 256); + recv_sys->addr_hash = hash_create(buf_pool_get_curr_size() / 512); } #ifndef UNIV_LOG_DEBUG |