Skip to content

Commit

Permalink
PMM-8655 remove unused field.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Sep 25, 2023
1 parent 5f1ce9e commit 33afc9a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions agent/agents/mysql/perfschema/perfschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
"github.com/percona/pmm/agent/queryparser"
"github.com/percona/pmm/agent/tlshelpers"
"github.com/percona/pmm/agent/utils/truncate"
"github.com/percona/pmm/agent/utils/version"
"github.com/percona/pmm/api/agentpb"
"github.com/percona/pmm/api/inventorypb"
"github.com/percona/pmm/utils/sqlmetrics"
Expand Down Expand Up @@ -81,7 +80,6 @@ type PerfSchema struct {
changes chan agents.Change
historyCache *historyCache
summaryCache *summaryCache
versionsCache *versionsCache
}

// Params represent Agent parameters.
Expand Down Expand Up @@ -195,7 +193,6 @@ func newPerfSchema(params *newPerfSchemaParams) (*PerfSchema, error) {
changes: make(chan agents.Change, 10),
historyCache: historyCache,
summaryCache: summaryCache,
versionsCache: &versionsCache{items: make(map[string]*mySQLVersion)},
}, nil
}

Expand Down Expand Up @@ -225,17 +222,6 @@ func (m *PerfSchema) Run(ctx context.Context) {
m.changes <- agents.Change{Status: inventorypb.AgentStatus_WAITING}
}

// cache MySQL version
ver, ven, err := version.GetMySQLVersion(ctx, m.q)
if err != nil {
m.l.Error(err)
}

m.versionsCache.items[m.agentID] = &mySQLVersion{
version: ver.Float(),
vendor: ven.String(),
}

go m.runHistoryCacheRefresher(ctx)

// query events_statements_summary_by_digest every minute at 00 seconds
Expand Down

0 comments on commit 33afc9a

Please sign in to comment.