From 2b93d702a226e9d8425e4848a3514f2c3ab28b55 Mon Sep 17 00:00:00 2001 From: Ace Ponce Date: Fri, 26 Aug 2016 11:19:56 -0700 Subject: [PATCH] fix unreachable code --- plugins/inputs/mysql/mysql.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/inputs/mysql/mysql.go b/plugins/inputs/mysql/mysql.go index 8b3820f2f..6e8305b1f 100644 --- a/plugins/inputs/mysql/mysql.go +++ b/plugins/inputs/mysql/mysql.go @@ -932,9 +932,6 @@ func (m *Mysql) gatherGlobalStatuses(db *sql.DB, serv string, acc telegraf.Accum } } - return nil - // } - // gather connection metrics from user_statistics for each user if m.GatherUserStatistics { conn_rows, err := db.Query("select user, total_connections, concurrent_connections, connected_time, busy_time, cpu_time, bytes_received, bytes_sent, binlog_bytes_written, rows_fetched, rows_updated, table_rows_read, select_commands, update_commands, other_commands, commit_transactions, rollback_transactions, denied_connections, lost_connections, access_denied, empty_queries, total_ssl_connections FROM INFORMATION_SCHEMA.USER_STATISTICS GROUP BY user")