We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55cb5c8 commit df2cd65Copy full SHA for df2cd65
drivers/mysql/mysql/applier.go
@@ -288,12 +288,13 @@ func (a *Applier) Run() {
288
return
289
}
290
a.ai.EntryExecutedHook = func(entry *common.BinlogEntry) {
291
- err = a.storeManager.SaveOracleSCNPos(a.subject, entry.Coordinates.LogPos, entry.Coordinates.LastCommitted)
292
- if err != nil {
293
- a.onError(common.TaskStateDead, errors.Wrap(err, "SaveOracleSCNPos"))
294
- return
+ if entry.Coordinates.SID == [16]byte{0} {
+ err = a.storeManager.SaveOracleSCNPos(a.subject, entry.Coordinates.LogPos, entry.Coordinates.LastCommitted)
+ if err != nil {
+ a.onError(common.TaskStateDead, errors.Wrap(err, "SaveOracleSCNPos"))
295
+ return
296
+ }
297
-
298
if entry.Final {
299
a.gtidCh <- &entry.Coordinates
300
0 commit comments