mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
perfschema sp instrumentation related changes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user