mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-27025 insert-intention lock conflicts with waiting ORDINARY lock
The code was backported from 10.5 be8113861c
commit. See that commit message for details.
This commit is contained in:
@ -283,7 +283,6 @@ connection default;
|
||||
update t1 set b = 'foo';
|
||||
connection con1;
|
||||
update t1 set a = 'bar';
|
||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
disconnect con1;
|
||||
connection default;
|
||||
drop table t1;
|
||||
|
@ -186,7 +186,9 @@ send update t1 set b = 'foo';
|
||||
connection con1;
|
||||
let $wait_condition= select count(*) from information_schema.innodb_lock_waits;
|
||||
source include/wait_condition.inc;
|
||||
error ER_LOCK_DEADLOCK;
|
||||
# There must no be DEADLOCK here as con1 transaction already holds locks, and
|
||||
# default's transaction lock is waiting, so the locks of the following "UPDATE"
|
||||
# must not conflict with waiting lock.
|
||||
update t1 set a = 'bar';
|
||||
disconnect con1;
|
||||
connection default;
|
||||
|
Reference in New Issue
Block a user