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

Method Equal

IceFireDB-SQLProxy/pkg/mysql/mysql/mysql_gtid.go:393–415  ·  view source on GitHub ↗
(o GTIDSet)

Source from the content-addressed store, hash-verified

391}
392
393func (s *MysqlGTIDSet) Equal(o GTIDSet) bool {
394 sub, ok := o.(*MysqlGTIDSet)
395 if !ok {
396 return false
397 }
398
399 if len(sub.Sets) != len(s.Sets) {
400 return false
401 }
402
403 for key, set := range sub.Sets {
404 o, ok := s.Sets[key]
405 if !ok {
406 return false
407 }
408
409 if !o.Intervals.Equal(set.Intervals) {
410 return false
411 }
412 }
413
414 return true
415}
416
417func (s *MysqlGTIDSet) String() string {
418 // there is only one element in gtid set

Callers

nothing calls this directly

Calls 1

EqualMethod · 0.65

Tested by

no test coverage detected