summaryrefslogtreecommitdiff
path: root/sql/event_queue.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-02-14 16:29:16 +0100
committerSergei Golubchik <serg@mariadb.org>2020-03-10 19:24:23 +0100
commit70e7b5095d44f580eb0a287fb6d6c794276e75d2 (patch)
treef723c725ad14f26de2abdb019199465d2825f7b1 /sql/event_queue.cc
parentd5a00697023d17b38b89d7b3c4d37fa98c1dd60b (diff)
downloadmariadb-git-70e7b5095d44f580eb0a287fb6d6c794276e75d2.tar.gz
perfschema sp instrumentation related changes
Diffstat (limited to 'sql/event_queue.cc')
-rw-r--r--sql/event_queue.cc4
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