mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
mdev-224 plugin usage statistics in the feedback reports
This commit is contained in:
parent
415507d392
commit
6e827f3455
6 changed files with 24 additions and 6 deletions
|
|
@ -980,9 +980,13 @@ plugin_ref plugin_lock(THD *thd, plugin_ref ptr)
|
|||
without a mutex.
|
||||
*/
|
||||
if (! plugin_dlib(ptr))
|
||||
{
|
||||
plugin_ref_to_int(ptr)->locks_total++;
|
||||
DBUG_RETURN(ptr);
|
||||
}
|
||||
#endif
|
||||
mysql_mutex_lock(&LOCK_plugin);
|
||||
plugin_ref_to_int(ptr)->locks_total++;
|
||||
rc= my_intern_plugin_lock_ci(lex, ptr);
|
||||
mysql_mutex_unlock(&LOCK_plugin);
|
||||
DBUG_RETURN(rc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue