Commit f5759bd8 authored by Thirunarayanan Balathandayuthapani's avatar Thirunarayanan Balathandayuthapani Committed by Marko Mäkelä

Bug #24347476 HIGH PRIORITY TRX FAILED TO KILL LOW PRIORITY TRX WHEN FOREIGN KEYS ARE INVOLVED

Problem:
=======
High priority transaction can't able to kill the blocking transaction
when foreign keys are involved. trx_kill_blocking() missing while checking
the foreign key constraint.

Fix:
===
Add trx_kill_blocking() while checking for the foreign key constraint.
Reviewed-by: default avatarDebarun Banerjee <debarun.banerjee@oracle.com>
RB: 13579
parent a930c0aa
...@@ -1878,6 +1878,8 @@ row_ins_check_foreign_constraint( ...@@ -1878,6 +1878,8 @@ row_ins_check_foreign_constraint(
my_atomic_addlint( my_atomic_addlint(
&check_table->n_foreign_key_checks_running, 1); &check_table->n_foreign_key_checks_running, 1);
trx_kill_blocking(trx);
lock_wait_suspend_thread(thr); lock_wait_suspend_thread(thr);
thr->lock_state = QUE_THR_LOCK_NOLOCK; thr->lock_state = QUE_THR_LOCK_NOLOCK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment