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

Method RemoveSkipped

db/change_cache.go:1019–1028  ·  view source on GitHub ↗

SKIPPED SEQUENCE QUEUE

(x uint64)

Source from the content-addressed store, hash-verified

1017// ////// SKIPPED SEQUENCE QUEUE
1018
1019func (c *changeCache) RemoveSkipped(x uint64) error {
1020 _, numSkipped, err := c.skippedSeqs.list.Remove(NewSingleSkippedSequenceEntryAt(x, 0))
1021 if err != nil {
1022 return fmt.Errorf("sequence %d not found in the skipped list, err: %v", x, err)
1023 }
1024 if numSkipped == 0 {
1025 c.db.BroadcastSlowMode.CompareAndSwap(true, false)
1026 }
1027 return nil
1028}
1029
1030func (c *changeCache) WasSkipped(x uint64) bool {
1031 return c.skippedSeqs.Contains(x)

Callers 1

processEntryMethod · 0.95

Calls 4

ErrorfMethod · 0.80
CompareAndSwapMethod · 0.80
RemoveMethod · 0.65

Tested by

no test coverage detected