Skip to content

Commit cd29576

Browse files
author
ffffwh
committed
do not require BinlogFile/Pos for BinlogRelay when using GTID
1 parent ed66723 commit cd29576

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

driver/mysql/extractor.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,6 @@ func (e *Extractor) Run() {
284284
}
285285
} else {
286286
fullCopy = false
287-
if e.mysqlContext.BinlogRelay {
288-
if e.mysqlContext.BinlogFile == "" {
289-
err := fmt.Errorf("the a job is incr-only (with GTID) and has BinlogRelay enabled," +
290-
" but BinlogFile,Pos is not provided")
291-
e.logger.Error("job config error")
292-
e.onError(common.TaskStateDead, err)
293-
return
294-
}
295-
}
296287
}
297288

298289
if err := e.sendSysVarAndSqlMode(); err != nil {

0 commit comments

Comments
 (0)