diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-02-14 16:29:16 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-10 19:24:23 +0100 |
commit | 70e7b5095d44f580eb0a287fb6d6c794276e75d2 (patch) | |
tree | f723c725ad14f26de2abdb019199465d2825f7b1 /sql/event_queue.cc | |
parent | d5a00697023d17b38b89d7b3c4d37fa98c1dd60b (diff) | |
download | mariadb-git-70e7b5095d44f580eb0a287fb6d6c794276e75d2.tar.gz |
perfschema sp instrumentation related changes
Diffstat (limited to 'sql/event_queue.cc')
-rw-r--r-- | sql/event_queue.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/event_queue.cc b/sql/event_queue.cc index 89bd672671f..1530c4e7f0d 100644 --- a/sql/event_queue.cc +++ b/sql/event_queue.cc @@ -24,6 +24,7 @@ #include "tztime.h" // my_tz_find, my_tz_OFFSET0, struct Time_zone #include "log.h" // sql_print_error #include "sql_class.h" // struct THD +#include "mysql/psi/mysql_sp.h" /** @addtogroup Event_Scheduler @@ -351,6 +352,9 @@ Event_queue::drop_matching_events(THD *thd, const LEX_CSTRING *pattern, is ok. */ queue_remove(&queue, i); + /* Drop statistics for this stored program from performance schema. */ + MYSQL_DROP_SP(SP_TYPE_EVENT, et->dbname.str, et->dbname.length, + et->name.str, et->name.length); delete et; } else |