Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Update collect_global_status.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Aug 22, 2022
1 parent 861be1e commit 84fb4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mysql/collect_global_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84fb4f4

Please sign in to comment.