projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
solaris-fixes branch: Applied the swap-patch by Christophe Kalt.
[collectd.git]
/
src
/
mysql.c
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))