mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-14380 Reduce possibility to timing-induced error in test
Also, shorten the test so it usually runs 2 seconds, not 3.
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
SELECT @@MAX_STATEMENT_TIME;
|
||||
@@MAX_STATEMENT_TIME
|
||||
0.000000
|
||||
SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(1);
|
||||
SET STATEMENT MAX_STATEMENT_TIME=3 FOR SELECT SLEEP(1);
|
||||
SLEEP(1)
|
||||
0
|
||||
SHOW STATUS LIKE "max_statement_time_exceeded";
|
||||
Variable_name Value
|
||||
Max_statement_time_exceeded 0
|
||||
SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(3);
|
||||
SET STATEMENT MAX_STATEMENT_TIME=1 FOR SELECT SLEEP(3);
|
||||
SLEEP(3)
|
||||
1
|
||||
SHOW STATUS LIKE "max_statement_time_exceeded";
|
||||
|
Reference in New Issue
Block a user