Skip to content

Commit

Permalink
Merge pull request #662 from signal18/log-management
Browse files Browse the repository at this point in the history
fix log sql switch
  • Loading branch information
caffeinated92 authored Jun 25, 2024
2 parents d378999 + 280572f commit 1e679aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster/cluster_tgl.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ func (cluster *Cluster) SwitchFailoverCheckDelayStat() {
cluster.Conf.FailoverCheckDelayStat = !cluster.Conf.FailoverCheckDelayStat
}

func (cluster *Cluster) SwitchLogSQLInMonitoring() {
cluster.Conf.LogSQLInMonitoring = !cluster.Conf.LogSQLInMonitoring
}

func (cluster *Cluster) SwitchLogFailedElection() {
if cluster.Conf.LogFailedElection {
cluster.Conf.LogFailedElectionLevel = 0
Expand Down
2 changes: 2 additions & 0 deletions server/api_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,8 @@ func (repman *ReplicationManager) switchSettings(mycluster *cluster.Cluster, set
mycluster.SwitchForceBinlogAnnotate()
case "force-binlog-slow-queries":
mycluster.SwitchForceBinlogSlowqueries()
case "log-sql-in-monitoring":
mycluster.SwitchLogSQLInMonitoring()
case "log-failed-election":
mycluster.SwitchLogFailedElection()
case "log-sst":
Expand Down

0 comments on commit 1e679aa

Please sign in to comment.