mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
recv_sys_init(), recv_sys_empty_hash(): Shrink recv_sys->addr_hash.
This addresses Bug #53122 in the built-in InnoDB.
This commit is contained in:
parent
068e9a1922
commit
f9cf2eb7ec
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue