mariadb/storage/innobase/btr
Marko Mäkelä 8fb09426b9 MDEV-36759: Huge performance drop
In commit b6923420f3 (MDEV-29445)
some hash tables were accidentally created with the minimum size
(101 entries) instead of correctly deriving the size from the
initial innodb_buffer_pool_size. This led to very long hash bucket
chains, which are very slow to traverse.

ut_find_prime(): Assert that the size is nonzero in order to catch
this type of regression in the future.

innodb_init_params(): Do not bother reading buf_pool.curr_size()
when it is known to be 0,

srv_start(): Correctly initialize srv_lock_table_size to 5 times
buf_pool.curr_size(), that is, the buffer pool size in pages,
between invoking buf_pool.create() and lock_sys.create().

btr_search_enable(), dict_sys_t::create(), dict_sys_t::resize():
Correctly refer to buf_pool.curr_pool_size(), that is,
innodb_buffer_pool_size in bytes, when calculating the hash table size.
In MDEV-29445 the expressions buf_pool_get_curr_size() were
accidentally replaced with buf_pool.curr_size().
2025-05-13 12:27:50 +03:00
..
btr0btr.cc Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
btr0bulk.cc Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
btr0cur.cc Merge 10.6 -> 10.11 2024-12-05 10:11:58 +01:00
btr0defragment.cc MDEV-30400 Assertion height == btr_page_get_level(...) on INSERT 2023-01-24 14:09:21 +02:00
btr0pcur.cc Merge 10.6 into 10.11 2024-09-06 16:17:42 +03:00
btr0sea.cc MDEV-36759: Huge performance drop 2025-05-13 12:27:50 +03:00