mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-16060: Speed up the test by 1 second
This commit is contained in:
@ -110,7 +110,7 @@ SET debug_sync='alter_table_intermediate_table_created SIGNAL ready WAIT_FOR go'
|
|||||||
ALTER TABLE t1 ADD FOREIGN KEY(pk) REFERENCES t2(pk) ON UPDATE CASCADE;
|
ALTER TABLE t1 ADD FOREIGN KEY(pk) REFERENCES t2(pk) ON UPDATE CASCADE;
|
||||||
connect con1, localhost, root;
|
connect con1, localhost, root;
|
||||||
SET debug_sync='now WAIT_FOR ready';
|
SET debug_sync='now WAIT_FOR ready';
|
||||||
SET lock_wait_timeout=1;
|
SET lock_wait_timeout=0;
|
||||||
UPDATE t2 SET pk=10 WHERE pk=1;
|
UPDATE t2 SET pk=10 WHERE pk=1;
|
||||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||||
PREPARE stmt FROM 'UPDATE t2 SET pk=10 WHERE pk=1';
|
PREPARE stmt FROM 'UPDATE t2 SET pk=10 WHERE pk=1';
|
||||||
|
@ -140,7 +140,7 @@ send ALTER TABLE t1 ADD FOREIGN KEY(pk) REFERENCES t2(pk) ON UPDATE CASCADE;
|
|||||||
|
|
||||||
connect con1, localhost, root;
|
connect con1, localhost, root;
|
||||||
SET debug_sync='now WAIT_FOR ready';
|
SET debug_sync='now WAIT_FOR ready';
|
||||||
SET lock_wait_timeout=1; # change to 0 in 10.3
|
SET lock_wait_timeout=0;
|
||||||
--error ER_LOCK_WAIT_TIMEOUT
|
--error ER_LOCK_WAIT_TIMEOUT
|
||||||
UPDATE t2 SET pk=10 WHERE pk=1;
|
UPDATE t2 SET pk=10 WHERE pk=1;
|
||||||
PREPARE stmt FROM 'UPDATE t2 SET pk=10 WHERE pk=1';
|
PREPARE stmt FROM 'UPDATE t2 SET pk=10 WHERE pk=1';
|
||||||
|
Reference in New Issue
Block a user