1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

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.
This commit is contained in:
Thirunarayanan Balathandayuthapani
2020-07-31 15:07:43 +05:30
parent 879ba1979b
commit a6066e230e
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ SET DEBUG_SYNC='foreign_constraint_check_for_update SIGNAL fk WAIT_FOR go';
DELETE FROM parent;
connection default;
SET DEBUG_SYNC='now WAIT_FOR fk';
SET lock_wait_timeout=1;
TRUNCATE TABLE child;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SET DEBUG_SYNC='now SIGNAL go';