diff --git a/sessionctx/binloginfo/binloginfo.go b/sessionctx/binloginfo/binloginfo.go index d871c10eed2ef..16b85c1464fa6 100644 --- a/sessionctx/binloginfo/binloginfo.go +++ b/sessionctx/binloginfo/binloginfo.go @@ -269,7 +269,7 @@ func (info *BinlogInfo) WriteBinlog(clusterID uint64) *WriteResult { return &WriteResult{true, nil} } - if strings.Contains(err.Error(), "received message larger than max") { + if strings.Contains(err.Error(), "message larger than max") { // This kind of error is not critical, return directly. return &WriteResult{false, errors.Errorf("binlog data is too large (%s)", err.Error())} }