You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/r/mdev-14846.result
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,12 @@ pk f1 f2 f3
31
31
3 t q 1
32
32
5 z t NULL
33
33
SET DEBUG_SYNC='now SIGNAL default_dml';
34
+
SET DEBUG_SYNC='now SIGNAL con2_dml';
34
35
connection default;
35
36
SET DEBUG_SYNC='now WAIT_FOR default_dml';
36
37
UPDATE t3 AS alias1 LEFT JOIN t3 AS alias2 ON ( alias1.f1 <> alias1.f2 ) SET alias1.f3 = 59 WHERE ( EXISTS ( SELECT t1.f3 FROM t1 WHERE t1.f1 = alias1.f1 ) ) OR alias2.f1 = 'h';
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/t/mdev-14846.test
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,15 @@ SET DEBUG_SYNC='now WAIT_FOR con1_dml';
35
35
begin;
36
36
SELECT * FROM t1 for update; # Holds x lock of all records in the table t1
37
37
SET DEBUG_SYNC='now SIGNAL default_dml';
38
+
SET DEBUG_SYNC='now SIGNAL con2_dml';
38
39
39
40
--connection default
40
41
SET DEBUG_SYNC='now WAIT_FOR default_dml';
41
42
--send UPDATE t3 AS alias1 LEFT JOIN t3 AS alias2 ON ( alias1.f1 <> alias1.f2 ) SET alias1.f3 = 59 WHERE ( EXISTS ( SELECT t1.f3 FROM t1 WHERE t1.f1 = alias1.f1 ) ) OR alias2.f1 = 'h'
42
43
# It holds the lock of all record in t3 and tries to acquire record lock for the table t1.
43
44
44
45
--connect (con2,localhost,root,,test)
45
-
set debug_sync='now WAIT_FOR default_dml';
46
+
set debug_sync='now WAIT_FOR con2_dml';
46
47
let $wait_condition=
47
48
select count(*) > 0 from information_schema.innodb_lock_waits;
0 commit comments