Add a check for performance_schema.events_stages_summary_global_by_event_name existing
[pstop.git] / app / app.go
index 32abd42..5b280ad 100644 (file)
@@ -1,6 +1,6 @@
-// lib - library routines for pstop.
+// app - pstop application package
 //
-// this file contains the library routines related to the stored state in pstop.
+// This file contains the library routines related to running the app.
 package app
 
 import (
@@ -79,9 +79,7 @@ func (app *App) Setup(dbh *sql.DB) {
         }
 
        app.finished = false
-
        app.screen.Initialise()
-
        app.setup_instruments = setup_instruments.NewSetupInstruments(dbh)
        app.setup_instruments.EnableMonitoring()
 
@@ -591,6 +589,7 @@ func (app *App) Run() {
 // be found.
 func (app *App) validate_mysql_version() error {
         var tables = [...]string{
+               "performance_schema.events_stages_summary_global_by_event_name",
                 "performance_schema.events_waits_summary_global_by_event_name",
                 "performance_schema.file_summary_by_instance",
                 "performance_schema.table_io_waits_summary_by_table",