We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f231ea2 + 7f69a58 commit 73851ecCopy full SHA for 73851ec
replication/binlogsyncer.go
@@ -163,8 +163,7 @@ func (b *BinlogSyncer) writeBinglogDumpCommand(p Position) error {
163
binary.LittleEndian.PutUint32(data[pos:], p.Pos)
164
pos += 4
165
166
- //only support 0x01 BINGLOG_DUMP_NON_BLOCK
167
- binary.LittleEndian.PutUint16(data[pos:], BINLOG_DUMP_NON_BLOCK)
+ binary.LittleEndian.PutUint16(data[pos:], BINLOG_DUMP_NEVER_STOP)
168
pos += 2
169
170
binary.LittleEndian.PutUint32(data[pos:], b.serverID)
replication/const.go
@@ -24,6 +24,7 @@ const (
24
)
25
26
const (
27
+ BINLOG_DUMP_NEVER_STOP uint16 = 0x00
28
BINLOG_DUMP_NON_BLOCK uint16 = 0x01
29
BINLOG_THROUGH_POSITION uint16 = 0x02
30
BINLOG_THROUGH_GTID uint16 = 0x04
0 commit comments