diff options
Diffstat (limited to 'sql/events.cc')
-rw-r--r-- | sql/events.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/events.cc b/sql/events.cc index f43ef751726..c3994dcd396 100644 --- a/sql/events.cc +++ b/sql/events.cc @@ -691,11 +691,9 @@ void Events::deinit() { DBUG_ENTER("Events::deinit"); - if (likely(!check_system_tables_error) && - scheduler->get_state() > Event_scheduler::UNINITIALIZED) + if (likely(!check_system_tables_error)) { scheduler->stop(); - DBUG_ASSERT(scheduler->get_state() == Event_scheduler::INITIALIZED); scheduler->deinit_scheduler(); event_queue->deinit_queue(); |