Skip to content

Commit 62a0305

Browse files
authored
binlog: fix the wrong fatal error when binlog is too large (#46365) (#46379)
close #28659
1 parent 2e06333 commit 62a0305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sessionctx/binloginfo/binloginfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (info *BinlogInfo) WriteBinlog(clusterID uint64) *WriteResult {
269269
return &WriteResult{true, nil}
270270
}
271271

272-
if strings.Contains(err.Error(), "received message larger than max") {
272+
if strings.Contains(err.Error(), "message larger than max") {
273273
// This kind of error is not critical, return directly.
274274
return &WriteResult{false, errors.Errorf("binlog data is too large (%s)", err.Error())}
275275
}

0 commit comments

Comments
 (0)