projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d0107
)
Applied patch by James Byers <jbyers@jbyers.com> to the MySQL plugin. It works now...
author
octo
<octo>
Sun, 2 Apr 2006 06:44:52 +0000
(06:44 +0000)
committer
octo
<octo>
Sun, 2 Apr 2006 06:44:52 +0000
(06:44 +0000)
src/mysql.c
patch
|
blob
|
history
diff --git
a/src/mysql.c
b/src/mysql.c
index
9a13986
..
822c6cc
100644
(file)
--- a/
src/mysql.c
+++ b/
src/mysql.c
@@
-366,6
+366,9
@@
static void mysql_read (void)
return;
query = "SHOW STATUS";
+ if (mysql_get_server_version (con) >= 50002)
+ query = "SHOW GLOBAL STATUS";
+
query_len = strlen (query);
if (mysql_real_query (con, query, query_len))