mariadb/storage/innobase/ut
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
..
ut0dbg.cc Cleanup: Say "mariadbd" instead of "mysqld" in InnoDB messages 2022-11-22 15:32:47 +02:00
ut0list.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ut0mem.cc MDEV-21452: Replace ib_mutex_t with mysql_mutex_t 2020-12-15 17:56:18 +02:00
ut0new.cc MDEV-21452: Replace ib_mutex_t with mysql_mutex_t 2020-12-15 17:56:18 +02:00
ut0rbt.cc MDEV-21452: Replace ib_mutex_t with mysql_mutex_t 2020-12-15 17:56:18 +02:00
ut0rnd.cc MDEV-36759: Huge performance drop 2025-05-13 12:27:50 +03:00
ut0ut.cc Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
ut0vec.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ut0wqueue.cc Merge 10.5 into 10.6 2021-10-21 16:06:34 +03:00