summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 680c818)
raw | patch | inline | side by side (parent: 680c818)
author | Florian Forster <octo@collectd.org> | |
Tue, 9 Aug 2016 19:46:21 +0000 (21:46 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 9 Aug 2016 19:46:21 +0000 (21:46 +0200) |
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 2ad91ca3f0c90c9e67e882cf8f30b4877de65abc..ff6c0a7af38a614e4703a732deb2b7f0437a4fe8 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
char *user;
char *pass;
char *database;
-
- // mysql_ssl_set params
+
+ /* mysql_ssl_set params */
char *key;
char *cert;
char *ca;
static MYSQL *getconnection (mysql_database_t *db)
{
const char *cipher;
-
+
if (db->is_connected)
{
int status;
}
cipher = mysql_get_ssl_cipher (db->con);
-
+
INFO ("mysql plugin: Successfully connected to database %s "
"at server %s with cipher %s "
"(server version: %s, protocol version: %d) ",
counter_submit ("mysql_sort", "scan", val, db);
}
- else if (strncmp (key, "Slow_queries", strlen ("Slow_queries")) == 0)
+ else if (strncmp (key, "Slow_queries", strlen ("Slow_queries")) == 0)
{
counter_submit ("mysql_slow_queries", NULL , val, db);
}