mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
This reverts commit21b2fada7aand commit81d71ee6b2. The MDEV-18464 change introduces a few data race issues. Contrary to the documentation, the field trx_t::victim is not always being protected by lock_sys_t::mutex and trx_t::mutex. Most importantly, it seems that KILL QUERY could wrongly avoid acquiring both mutexes when invoking lock_trx_handle_wait_low(), in case another thread had already set trx->victim=true. We also revert MDEV-12009, because it should depend on the MDEV-18464 fix being present.
6.7 KiB
6.7 KiB