Skip to content

Commit

Permalink
relay(dm): use binlog name comparison (pingcap#3710) (pingcap#3712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored and 3AceShowHand committed Jan 13, 2022
1 parent ef2636a commit a4330bd
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 a4330bd

Please sign in to comment.