Skip to content

Commit 89fb440

Browse files
authored
replication: Set source_binlog_checksum as well (#1003)
1 parent 5942cc6 commit 89fb440

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

replication/binlogsyncer.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,9 @@ func (b *BinlogSyncer) registerSlave() error {
319319
// necessary checksummed.
320320
// That preference is specified below.
321321

322-
if _, err = b.c.Execute(`SET @master_binlog_checksum='NONE'`); err != nil {
322+
if _, err = b.c.Execute(`SET @master_binlog_checksum='NONE', @source_binlog_checksum='NONE'`); err != nil {
323323
return errors.Trace(err)
324324
}
325-
326-
// if _, err = b.c.Execute(`SET @master_binlog_checksum=@@global.binlog_checksum`); err != nil {
327-
// return errors.Trace(err)
328-
// }
329325
}
330326
}
331327

0 commit comments

Comments
 (0)