Like MySQL GTID Interval struct, [start, stop), left closed and right open See MySQL rpl_gtid.h
| 17 | // Like MySQL GTID Interval struct, [start, stop), left closed and right open |
| 18 | // See MySQL rpl_gtid.h |
| 19 | type 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 |
| 27 | func parseInterval(str string) (i Interval, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected