Debian Codegraph @

mysql-test/suite/perfschema/include/wait_till_sleep.inc

raw
1 # Wait till the action of the connection using the DB = 'mysqltest' or
2 # 'mysqlsupertest' is finished ( Command = 'Sleep').
3
4 let $wait_timeout= 10;
5 let $wait_condition=
6 SELECT COUNT(*) = 1
7 FROM performance_schema.threads
8 WHERE processlist_db IN ('mysqltest','mysqlsupertest')
9 AND processlist_command = 'Sleep';
10 --source include/wait_condition.inc
11 if (!$success)
12 {
13 --echo # Error: We did not reach the expected state where processlist_command = 'Sleep'
14 SELECT * FROM performance_schema.threads
15 WHERE processlist_db IN ('mysqltest','mysqlsupertest');
16 --echo # abort
17 exit;
18 }
19