Skip to content

Commit bd8503a

Browse files
author
Jiri Ctvrtka
committed
PMM-8787 Change var name.
1 parent e2831ab commit bd8503a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/postgres_exporter/postgres_exporter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,10 +1490,10 @@ func (e *Exporter) checkMapVersions(ch chan<- prometheus.Metric, server *Server)
14901490

14911491
// Check if semantic version changed and recalculate maps if needed.
14921492
server.lastMapVersionMtx.RLock()
1493-
isVersionEqual := semanticVersion.NE(server.lastMapVersion)
1493+
isVersionNotEqual := semanticVersion.NE(server.lastMapVersion)
14941494
server.lastMapVersionMtx.RUnlock()
14951495

1496-
if isVersionEqual || metricMap == nil {
1496+
if isVersionNotEqual || metricMap == nil {
14971497
log.Infof("Semantic Version Changed on %q: %s -> %s", server, server.lastMapVersion, semanticVersion)
14981498

14991499
// Get Default Metrics only for master database

0 commit comments

Comments
 (0)