mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
mdev-224 plugin usage statistics in the feedback reports
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user