projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dddd6ea
)
svn merge -r555:556 trunk tags/collectd-3.8.3
collectd-3.8.3
author
octo
<octo>
Sun, 2 Apr 2006 08:33:42 +0000
(08:33 +0000)
committer
octo
<octo>
Sun, 2 Apr 2006 08:33:42 +0000
(08:33 +0000)
src/mysql.c
patch
|
blob
|
history
diff --git
a/src/mysql.c
b/src/mysql.c
index
ac65f75
..
4342dea
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))