From 84fb4f433b1d9b2556361e2bdab2efac4367b424 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Mon, 22 Aug 2022 19:29:31 +0300 Subject: [PATCH] Update collect_global_status.go --- modules/mysql/collect_global_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mysql/collect_global_status.go b/modules/mysql/collect_global_status.go index 44776edd5..60b7399bf 100644 --- a/modules/mysql/collect_global_status.go +++ b/modules/mysql/collect_global_status.go @@ -36,7 +36,7 @@ func (m *MySQL) collectGlobalStatus(mx map[string]int64) error { mx[name+"_donor"] = boolToInt(value == "2") mx[name+"_joined"] = boolToInt(value == "3") mx[name+"_synced"] = boolToInt(value == "4") - mx[name+"_error"] = boolToInt(value == "5") + mx[name+"_error"] = boolToInt(parseInt(value) >= 5) case "wsrep_cluster_status": // https://www.percona.com/doc/percona-xtradb-cluster/LATEST/wsrep-status-index.html#wsrep_cluster_status // https://github.com/codership/wsrep-API/blob/eab2d5d5a31672c0b7d116ef1629ff18392fd7d0/wsrep_api.h