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

Method AddSet

IceFireDB-SQLite/pkg/mysql/mysql/mysql_gtid.go:349–360  ·  view source on GitHub ↗
(set *UUIDSet)

Source from the content-addressed store, hash-verified

347}
348
349func (s *MysqlGTIDSet) AddSet(set *UUIDSet) {
350 if set == nil {
351 return
352 }
353 sid := set.SID.String()
354 o, ok := s.Sets[sid]
355 if ok {
356 o.AddInterval(set.Intervals)
357 } else {
358 s.Sets[sid] = set
359 }
360}
361
362func (s *MysqlGTIDSet) Update(GTIDStr string) error {
363 gtidSet, err := ParseMysqlGTIDSet(GTIDStr)

Callers 4

UpdateMethod · 0.95
ParseMysqlGTIDSetFunction · 0.45
DecodeMysqlGTIDSetFunction · 0.45

Calls 2

StringMethod · 0.65
AddIntervalMethod · 0.45

Tested by 1