MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Interval

Struct Interval

IceFireDB-SQLProxy/pkg/mysql/mysql/mysql_gtid.go:19–24  ·  view source on GitHub ↗

Like MySQL GTID Interval struct, [start, stop), left closed and right open See MySQL rpl_gtid.h

Source from the content-addressed store, hash-verified

17// Like MySQL GTID Interval struct, [start, stop), left closed and right open
18// See MySQL rpl_gtid.h
19type Interval struct {
20 // The first GID of this interval.
21 Start int64
22 // The first GID after this interval.
23 Stop int64
24}
25
26// Interval is [start, stop), but the GTID string's format is [n] or [n1-n2], closed interval
27func parseInterval(str string) (i Interval, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected