Skip to content

Commit

Permalink
relay(dm): use binlog name comparison (#3710) (#3712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 14, 2021
1 parent 35cfef2 commit eb32aaf
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 @@ -240,7 +240,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 eb32aaf

Please sign in to comment.