Return error when can't execute stats query

This commit is contained in:
Marcos Lilljedahl 2015-07-03 09:25:18 -03:00
parent e2cff9febe
commit 5cbe15b676
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (m *Mysql) gatherServer(serv string, acc plugins.Accumulator) error {
rows, err := db.Query(`SHOW /*!50002 GLOBAL */ STATUS`)
if err != nil {
return nil
return err
}
for rows.Next() {