MCPcopy Create free account
hub / github.com/actiontech/dtle / handleEventGSet

Method handleEventGSet

driver/mysql/binlog/binlog_reader.go:434–448  ·  view source on GitHub ↗
(gset gomysql.GTIDSet)

Source from the content-addressed store, hash-verified

432}
433
434func (b *BinlogReader) handleEventGSet(gset gomysql.GTIDSet) {
435 if gset == nil {
436 return
437 }
438
439 b.currentCoord.GtidSet = gset.String()
440 b.CurrentGtidSetMutex.Lock()
441 b.CurrentGtidSet = gset.(*gomysql.MysqlGTIDSet)
442 b.CurrentGtidSetMutex.Unlock()
443 if b.targetGtid != nil {
444 if b.CurrentGtidSetContains(b.targetGtid) {
445 b.onMeetTarget()
446 }
447 }
448}
449
450func (b *BinlogReader) handleEvent(ev *replication.BinlogEvent, entriesChannel chan<- *common.EntryContext) error {
451 switch ev.Header.EventType {

Callers 2

handleEventMethod · 0.95
handleQueryEventMethod · 0.95

Calls 3

onMeetTargetMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected