Skip to content

Commit

Permalink
relay(dm): use binlog name comparison (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 authored Dec 3, 2021
1 parent 2f7020b commit cee93d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm/relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (r *Relay) process(ctx context.Context) error {
}
} else {
_, metaPos := r.meta.Pos()
if neededBinlogName > metaPos.Name {
if mysql.CompareBinlogFileName(neededBinlogName, metaPos.Name) > 0 {
isRelayMetaOutdated = true
}
}
Expand Down

0 comments on commit cee93d7

Please sign in to comment.