Current Path : /home/usr.opt/mysql57/mysql-test/suite/perfschema/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/perfschema/include/wait_for_pfs_thread_count.inc |
# Tests for the performance schema # This helper can be used to enforce that no threads from previous # tests are still running, which can impact some test scripts. # Wait until there is only one session left, this one. let $wait_condition= select count(*) = 1 from information_schema.processlist; --source include/wait_condition.inc # Threads are removed from information_schema.processlist # very soon, but continue to execute in the server, # before finally be removed from performance_schema.threads. # Because instrumentation is optional, we use "<=" here. let $wait_condition= select count(*) <= 2 from performance_schema.threads where `TYPE`='FOREGROUND'; --source include/wait_condition.inc