projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl plugin: correct error message
[collectd.git]
/
src
/
mysql.c
diff --git
a/src/mysql.c
b/src/mysql.c
index
a239413
..
8ab775f
100644
(file)
--- a/
src/mysql.c
+++ b/
src/mysql.c
@@
-71,7
+71,7
@@
static void mysql_database_free (void *arg) /* {{{ */
DEBUG ("mysql plugin: mysql_database_free (arg = %p);", arg);
DEBUG ("mysql plugin: mysql_database_free (arg = %p);", arg);
- db =
(mysql_database_t *)
arg;
+ db = arg;
if (db == NULL)
return;
if (db == NULL)
return;
@@
-904,6
+904,10
@@
static int mysql_read (user_data_t *ud)
counter_submit ("mysql_sort", "scan", val, db);
}
counter_submit ("mysql_sort", "scan", val, db);
}
+ else if (strncmp (key, "Slow_queries", strlen ("Slow_queries")) == 0)
+ {
+ counter_submit ("mysql_slow_queries", NULL , val, db);
+ }
}
mysql_free_result (res); res = NULL;
}
mysql_free_result (res); res = NULL;