mariadb/unittest/sql
Kristian Nielsen 2a4c573339 MDEV-32728: Wrong mutex usage 'LOCK_thd_data' and 'wait_mutex'
Checking for kill with thd_kill_level() or check_killed() runs apc
requests, which takes the LOCK_thd_kill mutex. But this is dangerous,
as checking for kill needs to be called while holding many different
mutexes, and can lead to cyclic mutex dependency and deadlock.

But running apc is only "best effort", so skip running the apc if the
LOCK_thd_kill is not available. The apc will then be run on next check
of kill signal.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2023-11-08 14:50:43 +01:00
..
CMakeLists.txt Merge 10.5 into 10.6 2021-11-16 16:30:45 +02:00
dummy_builtins.cc improve build, allow sql library to be built in parallel with builtins 2021-11-09 17:02:45 +02:00
explain_filename-t.cc MDEV-19897 Rename source code variable names from utf8 to utf8mb3 2019-06-28 12:37:04 +04:00
mf_iocache-t.cc Merge branch '10.2' into 10.3 2020-11-14 09:57:22 +01:00
my_apc-t.cc MDEV-32728: Wrong mutex usage 'LOCK_thd_data' and 'wait_mutex' 2023-11-08 14:50:43 +01:00
my_json_writer-t.cc MDEV-23766: Re-add Json_writer unit test. 2021-11-09 17:07:23 +02:00