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

Function normalizeBinlogFilename

driver/mysql/binlog/binlog_reader.go:1603–1612  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1601}
1602
1603func normalizeBinlogFilename(name string) string {
1604 // See `posUUIDSuffixSeparator` in pingcap/dm.
1605 re := regexp.MustCompile("^(.*)\\|.+(\\..*)$")
1606 sm := re.FindStringSubmatch(name)
1607 if len(sm) == 3 {
1608 return sm[1] + sm[2]
1609 } else {
1610 return name
1611 }
1612}
1613
1614func (b *BinlogReader) GetQueueSize() int {
1615 if b != nil && b.binlogStreamer0 != nil {

Callers 1

OnApplierRotateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected