diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-11-25 14:41:13 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2019-11-25 15:02:08 +0100 |
commit | 7c7f9bef28aa566557da31402142f6dd8298ddd2 (patch) | |
tree | 7d28adb2c99e8a0fe23ca1b85230c355b06dcb5f /mysql-test/suite/versioning/t/partition.test | |
parent | 312569e2fd79a6582161900e726847ad688ee3b0 (diff) | |
download | mariadb-git-7c7f9bef28aa566557da31402142f6dd8298ddd2.tar.gz |
Fix shutdown hang in dict_stats , caused by MDEV-16264mariadb-10.5.0
dict_stats_shutdown() can hang, waiting for timer callback to finish.
This happens because locks the same mutex, which can also used inside
timer callback, within dict_stats_schedule() function.
Fix is to make dict_stats_schedule() use mutex.try_lock() instead of
mutex.lock().
In the unlikely case of simultaneous dict_stats_schedule() setting
different timer delays, now the first one would win, which is fine.
Important is that shutdown won't hang.
Diffstat (limited to 'mysql-test/suite/versioning/t/partition.test')
0 files changed, 0 insertions, 0 deletions