Code

mysql: correct 2 data types in innodb counters
authorMarc Fournier <marc.fournier@camptocamp.com>
Mon, 20 Oct 2014 14:49:04 +0000 (16:49 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 20 Oct 2014 14:49:04 +0000 (16:49 +0200)
Thanks to @ekilby for spotting this mistake ! Fixes #757

src/mysql.c

index 7d5eddd17bce73fd85ff84420b27b159569cad43..f5ae1ad2182668250be54f92cbeb66703a1bb441 100644 (file)
@@ -688,7 +688,7 @@ static int mysql_read (user_data_t *ud)
                        else if (strcmp (key, "Innodb_buffer_pool_pages_dirty") == 0)
                                gauge_submit ("mysql_bpool_pages", "dirty", val, db);
                        else if (strcmp (key, "Innodb_buffer_pool_pages_flushed") == 0)
-                               counter_submit ("mysql_bpool_counters", "flushed", val, db);
+                               counter_submit ("mysql_bpool_pages", "flushed", val, db);
                        else if (strcmp (key, "Innodb_buffer_pool_pages_free") == 0)
                                gauge_submit ("mysql_bpool_pages", "free", val, db);
                        else if (strcmp (key, "Innodb_buffer_pool_pages_misc") == 0)
@@ -716,7 +716,7 @@ static int mysql_read (user_data_t *ud)
                        else if (strcmp (key, "Innodb_data_reads") == 0)
                                counter_submit ("mysql_innodb_data", "reads", val, db);
                        else if (strcmp (key, "Innodb_data_writes") == 0)
-                               counter_submit ("mysql_bpool_counters", "writes", val, db);
+                               counter_submit ("mysql_innodb_data", "writes", val, db);
                        else if (strcmp (key, "Innodb_data_written") == 0)
                                counter_submit ("mysql_innodb_data", "written", val, db);