From 89f47de01f1be395d4dd104557f9804c45248481 Mon Sep 17 00:00:00 2001 From: Tanjin Xu Date: Mon, 16 Oct 2023 11:49:26 -0700 Subject: [PATCH] add error conversion --- go/vt/vttablet/tabletmanager/replmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vttablet/tabletmanager/replmanager.go b/go/vt/vttablet/tabletmanager/replmanager.go index 1ef616c3e80..64da7550306 100644 --- a/go/vt/vttablet/tabletmanager/replmanager.go +++ b/go/vt/vttablet/tabletmanager/replmanager.go @@ -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)