Skip to content

Commit

Permalink
replication: Set source_binlog_checksum as well (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Mar 1, 2025
1 parent 5942cc6 commit 89fb440
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions replication/binlogsyncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,9 @@ func (b *BinlogSyncer) registerSlave() error {
// necessary checksummed.
// That preference is specified below.

if _, err = b.c.Execute(`SET @master_binlog_checksum='NONE'`); err != nil {
if _, err = b.c.Execute(`SET @master_binlog_checksum='NONE', @source_binlog_checksum='NONE'`); err != nil {
return errors.Trace(err)
}

// if _, err = b.c.Execute(`SET @master_binlog_checksum=@@global.binlog_checksum`); err != nil {
// return errors.Trace(err)
// }
}
}

Expand Down

0 comments on commit 89fb440

Please sign in to comment.