summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74c08b0)
raw | patch | inline | side by side (parent: 74c08b0)
author | Florian Forster <octo@google.com> | |
Fri, 8 Aug 2014 07:36:10 +0000 (09:36 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 8 Aug 2014 07:36:10 +0000 (09:36 +0200) |
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 0f8d5a64d04bd637d007fdca5a4baf8e15e47654..7d5eddd17bce73fd85ff84420b27b159569cad43 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
#include <mysql/mysql.h>
#endif
-/* TODO: Understand `Select_*' and possibly do that stuff as well.. */
-
struct mysql_database_s /* {{{ */
{
char *instance;
else if (strcmp (key, "Innodb_rows_updated") == 0)
counter_submit ("mysql_innodb_rows", "updated", val, db);
}
- else if (strncmp (key, "Select_",
- strlen ("Select_")) == 0)
+ else if (strncmp (key, "Select_", strlen ("Select_")) == 0)
{
- counter_submit ("mysql_select",
- key + strlen ("Select_"),
+ counter_submit ("mysql_select", key + strlen ("Select_"),
val, db);
}
- else if (strncmp (key, "Sort_",
- strlen ("Sort_")) == 0)
+ else if (strncmp (key, "Sort_", strlen ("Sort_")) == 0)
{
- counter_submit ("mysql_sort",
- key + strlen ("Sort_"),
+ counter_submit ("mysql_sort", key + strlen ("Sort_"),
val, db);
}
}