From 79877a88eca69b078bac9163951b28642bb5cbfa Mon Sep 17 00:00:00 2001 From: Tanjin Xu Date: Mon, 16 Oct 2023 13:32:53 -0700 Subject: [PATCH] revert changes --- 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 61e594c105a..307b9ce7b1f 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.Error() != mysql.ErrNotReplica.Error() { + if err != mysql.ErrNotReplica { return } log.Infof("slack error: check replication status failed with err: %v, sql err: %v", err, mysql.ErrNotReplica)