Don't notify continuously when MySQL slave SQL thread is running
authorJoaquín Cuenca Abela <e98cuenc@gmail.com>
Wed, 29 May 2013 14:22:09 +0000 (16:22 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 30 May 2013 06:10:04 +0000 (08:10 +0200)
Signed-off-by: Florian Forster <octo@collectd.org>
src/mysql.c

index 8b3cd21..f93a442 100644 (file)
@@ -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;
                }
        }