Skip to content

Commit

Permalink
add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Oct 16, 2023
1 parent 89f47de commit b0250bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vttablet/tabletmanager/replmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ func (rm *replManager) check() {
func (rm *replManager) checkActionLocked() {
status, err := rm.tm.MysqlDaemon.ReplicationStatus()
if err != nil {
if mysql.NewSQLErrorFromError(err) != mysql.ErrNotReplica {
if err != mysql.ErrNotReplica {
return
}
log.Infof("slack error: check replication status failed with %v", err)
log.Infof("slack error: check replication status failed with err: %v, sql err: %v", err, mysql.ErrNotReplica)
} else {
// If only one of the threads is stopped, it's probably
// intentional. So, we don't repair replication.
Expand Down

0 comments on commit b0250bd

Please sign in to comment.