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

Method notifyChange

db/change_cache.go:564–569  ·  view source on GitHub ↗
(ctx context.Context, chs []channels.ID)

Source from the content-addressed store, hash-verified

562}
563
564func (c *changeCache) notifyChange(ctx context.Context, chs []channels.ID) {
565 if c.notifyChangeFunc == nil || len(chs) == 0 {
566 return
567 }
568 c.notifyChangeFunc(ctx, channels.SetFromArrayNoValidate(chs))
569}
570
571func (c *changeCache) Remove(ctx context.Context, collectionID uint32, docIDs []string, startTime time.Time) (count int) {
572 return c.channelCache.Remove(ctx, collectionID, docIDs, startTime)

Callers 2

InsertPendingEntriesMethod · 0.95
processPrincipalDocMethod · 0.95

Calls 1

SetFromArrayNoValidateFunction · 0.92

Tested by

no test coverage detected