Skip to content

Commit

Permalink
add error conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Oct 16, 2023
1 parent 2849158 commit 89f47de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletmanager/replmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (rm *replManager) check() {
func (rm *replManager) checkActionLocked() {
status, err := rm.tm.MysqlDaemon.ReplicationStatus()
if err != nil {
if err != mysql.ErrNotReplica {
if mysql.NewSQLErrorFromError(err) != mysql.ErrNotReplica {
return
}
log.Infof("slack error: check replication status failed with %v", err)
Expand Down

0 comments on commit 89f47de

Please sign in to comment.