MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Equals

Method Equals

db/sequence_id.go:181–183  ·  view source on GitHub ↗

Equality of sequences, based on seq, triggered by and low hash

(s2 SequenceID)

Source from the content-addressed store, hash-verified

179
180// Equality of sequences, based on seq, triggered by and low hash
181func (s SequenceID) Equals(s2 SequenceID) bool {
182 return s.SafeSequence() == s2.SafeSequence() && s.TriggeredBy == s2.TriggeredBy
183}
184
185// The most significant value is TriggeredBy, unless it's zero, in which case use Seq.
186// The tricky part is that "n" sorts after "n:m" for any nonzero m

Callers 4

UpdatePrincipalMethod · 0.45
EqualMethod · 0.45

Calls 1

SafeSequenceMethod · 0.95

Tested by 2

EqualMethod · 0.36