MCPcopy
hub / github.com/github/gh-ost / GetCurrentBinlogCoordinates

Method GetCurrentBinlogCoordinates

go/binlog/gomysql_reader.go:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (gmr *GoMySQLReader) GetCurrentBinlogCoordinates() mysql.BinlogCoordinates {
83 gmr.currentCoordinatesMutex.Lock()
84 defer gmr.currentCoordinatesMutex.Unlock()
85 return gmr.currentCoordinates.Clone()
86}
87
88func (gmr *GoMySQLReader) handleRowsEvent(ev *replication.BinlogEvent, rowsEvent *replication.RowsEvent, entriesChannel chan<- *BinlogEntry) error {
89 currentCoords := gmr.GetCurrentBinlogCoordinates()

Callers 1

handleRowsEventMethod · 0.95

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected