mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
07485d9e0d
Fix a race Wait at the end of the test for all events to finish. Then continue to the next result. This should be done, as the server won't be restarted, and although events are dropped with drop database, they could still be executing in memory. mysql-test/r/events_restart_phase3.result: fix result mysql-test/t/events_restart_phase3.test: Fix a race Wait at the end of the test for all events to finish. Then continue to the next result. This should be done, as the server won't be restarted, and although events are dropped with drop database, they could still be executing in memory.
20 lines
779 B
Text
20 lines
779 B
Text
# Can't test with embedded server that doesn't support grants
|
|
-- source include/not_embedded.inc
|
|
#
|
|
# We need this file primarily to make sure that the scheduler is restarted
|
|
# and enabled after we have restored mysql.event table.
|
|
# This is the final step of the "cleanup".
|
|
#
|
|
# Make sure also that events are executed OK after restart, just in case.
|
|
use events_test;
|
|
# Make sure the scheduler was started successfully
|
|
select @@event_scheduler;
|
|
let $wait_condition=select count(distinct name)=3 from execution_log;
|
|
--source include/wait_condition.inc
|
|
drop table execution_log;
|
|
# Will drop all events
|
|
drop database events_test;
|
|
|
|
let $wait_condition=
|
|
select count(*) = 0 from information_schema.processlist
|
|
where db='events_test' and command = 'Connect' and user=current_user();
|