summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-04-18 04:00:08 +0200
committerSergei Golubchik <sergii@pisem.net>2012-04-18 04:00:08 +0200
commit6e827f3455407ec8133bf888c19255ecbf93c20b (patch)
treede77bdc20d872d8854855487c54a0041a11db105 /sql/sql_plugin.cc
parent415507d3924da6af7d841376a2ddfb902145666c (diff)
downloadmariadb-git-6e827f3455407ec8133bf888c19255ecbf93c20b.tar.gz
mdev-224 plugin usage statistics in the feedback reports
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 33bc60f2336..a7d7f464fca 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -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);