diff options
Diffstat (limited to 'sql/event_queue.cc')
-rw-r--r-- | sql/event_queue.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/event_queue.cc b/sql/event_queue.cc index fb1653d6d8f..c0f3166777c 100644 --- a/sql/event_queue.cc +++ b/sql/event_queue.cc @@ -197,7 +197,8 @@ Event_queue::create_event(THD *thd, Event_queue_element *new_element) DBUG_PRINT("enter", ("thd: 0x%lx et=%s.%s", (long) thd, new_element->dbname.str, new_element->name.str)); - if (new_element->status == Event_queue_element::DISABLED) + if (res || new_element->status == Event_queue_element::DISABLED + || new_element->status == Event_queue_element::SLAVESIDE_DISABLED) delete new_element; else { |