Skip to content

Commit

Permalink
debug-less
Browse files Browse the repository at this point in the history
  • Loading branch information
vmogilev committed Jan 11, 2024
1 parent 8de01ee commit 7335c67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/vt/vttablet/tabletmanager/replmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"sync"
"time"

"github.com/davecgh/go-spew/spew"
"vitess.io/vitess/go/mysql"
"vitess.io/vitess/go/timer"
"vitess.io/vitess/go/vt/log"
Expand Down Expand Up @@ -104,16 +103,17 @@ func (rm *replManager) check() {

func (rm *replManager) checkActionLocked() {
status, err := rm.tm.MysqlDaemon.ReplicationStatus()
log.Infof("vm-debug: %s", spew.Sdump(status))
// log.Infof("vm-debug: %s", spew.Sdump(status))
if err != nil {
log.Infof("vm-debug: %v", err)
if err != mysql.ErrNotReplica {
return
}
} else {
// If only one of the threads is stopped, it's probably
// intentional. So, we don't repair replication.
if status.SQLHealthy() || status.IOHealthy() {
log.Infof("vm-debug: status.SQLHealthy:%v status.IOHealthy:%v", status.SQLHealthy(), status.IOHealthy())
// log.Infof("vm-debug: status.SQLHealthy:%v status.IOHealthy:%v", status.SQLHealthy(), status.IOHealthy())

return
}
Expand Down

0 comments on commit 7335c67

Please sign in to comment.