mariadb/mysql-test/suite/perfschema/include/pfs_running_event_scheduler.inc
Sergei Golubchik 7317aadeea perfschema.threads_mysql sporadic failures
wait a bit more thoroughly for event scheduler to be fully started
2023-11-25 10:33:31 +01:00

10 lines
372 B
SQL

# threads are added to:
# - information_schema.processlist
# - performance_schema.threads
# at different times, so we may have to wait a little more
# for the event_scheduler to start
#
let $wait_condition=
SELECT COUNT(*) = 1 FROM performance_schema.threads
WHERE name LIKE 'thread/sql/event%' AND processlist_command IS NOT NULL;
--source include/wait_condition.inc