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:
@ -35,6 +35,7 @@
|
||||
#include "sp_cache.h" // sp_invalidate_cache
|
||||
#include <mysys_err.h>
|
||||
#include "debug_sync.h"
|
||||
#include "mysql/psi/mysql_sp.h"
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
@ -624,7 +625,13 @@ end:
|
||||
thd->lex->restore_backup_query_tables_list(&backup);
|
||||
|
||||
if (!result)
|
||||
{
|
||||
my_ok(thd);
|
||||
/* Drop statistics for this stored program from performance schema. */
|
||||
MYSQL_DROP_SP(SP_TYPE_TRIGGER,
|
||||
thd->lex->spname->m_db.str, thd->lex->spname->m_db.length,
|
||||
thd->lex->spname->m_name.str, thd->lex->spname->m_name.length);
|
||||
}
|
||||
|
||||
DBUG_RETURN(result);
|
||||
#ifdef WITH_WSREP
|
||||
@ -1554,6 +1561,10 @@ bool Table_triggers_list::check_n_load(THD *thd, const LEX_CSTRING *db,
|
||||
trigger->definer= *trg_definer;
|
||||
}
|
||||
|
||||
sp->m_sp_share= MYSQL_GET_SP_SHARE(SP_TYPE_TRIGGER,
|
||||
sp->m_db.str, sp->m_db.length,
|
||||
sp->m_name.str, sp->m_name.length);
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
/*
|
||||
Let us check that we correctly update trigger definitions when we
|
||||
@ -1846,6 +1857,9 @@ bool Table_triggers_list::drop_all_triggers(THD *thd, const LEX_CSTRING *db,
|
||||
*/
|
||||
result= 1;
|
||||
}
|
||||
/* Drop statistics for this stored program from performance schema. */
|
||||
MYSQL_DROP_SP(SP_TYPE_TRIGGER, db->str, db->length,
|
||||
trigger->name.str, trigger->name.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user