From: JoaquĆ­n Cuenca Abela Date: Wed, 29 May 2013 14:22:09 +0000 (+0200) Subject: Don't notify continuously when MySQL slave SQL thread is running X-Git-Tag: collectd-5.3.1~4^2~1^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2391b9da6127e4acd5b54b7ae6c2d585df0e2a0;p=collectd.git Don't notify continuously when MySQL slave SQL thread is running Signed-off-by: Florian Forster --- diff --git a/src/mysql.c b/src/mysql.c index 8b3cd210..f93a4421 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -689,7 +689,7 @@ static int mysql_read_slave_stats (mysql_database_t *db, MYSQL *con) ssnprintf (n.message, sizeof (n.message), "slave SQL thread started"); plugin_dispatch_notification (&n); - db->slave_sql_running = 0; + db->slave_sql_running = 1; } }