MDEV-22511 innodb.truncate_foreign failed in buildbot with wrong error code

- Adding lock_wait_timeout value as 1 make sure that truncate table
fails instead of making MDL timeout.
parent 879ba197
...@@ -29,6 +29,7 @@ SET DEBUG_SYNC='foreign_constraint_check_for_update SIGNAL fk WAIT_FOR go'; ...@@ -29,6 +29,7 @@ SET DEBUG_SYNC='foreign_constraint_check_for_update SIGNAL fk WAIT_FOR go';
DELETE FROM parent; DELETE FROM parent;
connection default; connection default;
SET DEBUG_SYNC='now WAIT_FOR fk'; SET DEBUG_SYNC='now WAIT_FOR fk';
SET lock_wait_timeout=1;
TRUNCATE TABLE child; TRUNCATE TABLE child;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SET DEBUG_SYNC='now SIGNAL go'; SET DEBUG_SYNC='now SIGNAL go';
......
...@@ -37,6 +37,7 @@ send DELETE FROM parent; ...@@ -37,6 +37,7 @@ send DELETE FROM parent;
connection default; connection default;
SET DEBUG_SYNC='now WAIT_FOR fk'; SET DEBUG_SYNC='now WAIT_FOR fk';
SET lock_wait_timeout=1;
--error ER_LOCK_WAIT_TIMEOUT --error ER_LOCK_WAIT_TIMEOUT
TRUNCATE TABLE child; TRUNCATE TABLE child;
SET DEBUG_SYNC='now SIGNAL go'; SET DEBUG_SYNC='now SIGNAL go';
......
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