projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
680c818
)
mysql plugin: Remove trailing whitespace.
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
2ad91ca
..
ff6c0a7
100644
(file)
--- a/
src/mysql.c
+++ b/
src/mysql.c
@@
-47,8
+47,8
@@
struct mysql_database_s /* {{{ */
char *user;
char *pass;
char *database;
char *user;
char *pass;
char *database;
-
- /
/ mysql_ssl_set params
+
+ /
* mysql_ssl_set params */
char *key;
char *cert;
char *ca;
char *key;
char *cert;
char *ca;
@@
-276,7
+276,7
@@
static int mysql_config (oconfig_item_t *ci) /* {{{ */
static MYSQL *getconnection (mysql_database_t *db)
{
const char *cipher;
static MYSQL *getconnection (mysql_database_t *db)
{
const char *cipher;
-
+
if (db->is_connected)
{
int status;
if (db->is_connected)
{
int status;
@@
-318,7
+318,7
@@
static MYSQL *getconnection (mysql_database_t *db)
}
cipher = mysql_get_ssl_cipher (db->con);
}
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) ",
INFO ("mysql plugin: Successfully connected to database %s "
"at server %s with cipher %s "
"(server version: %s, protocol version: %d) ",
@@
-1001,7
+1001,7
@@
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)
+ else if (strncmp (key, "Slow_queries", strlen ("Slow_queries")) == 0)
{
counter_submit ("mysql_slow_queries", NULL , val, db);
}
{
counter_submit ("mysql_slow_queries", NULL , val, db);
}