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

Method GetChanges

db/channel_cache_single.go:841–845  ·  view source on GitHub ↗

Get Changes uses high sequence value (math.MaxUint64) as the upper bound. Relies on changes processing to apply HighCachedSequence filtering - same approach used by singleChannelCacheImpl.

(ctx context.Context, options ChangesOptions)

Source from the content-addressed store, hash-verified

839// Get Changes uses high sequence value (math.MaxUint64) as the upper bound. Relies on changes processing
840// to apply HighCachedSequence filtering - same approach used by singleChannelCacheImpl.
841func (b *bypassChannelCache) GetChanges(ctx context.Context, options ChangesOptions) ([]*LogEntry, error) {
842 startSeq := options.Since.SafeSequence() + 1
843 endSeq := uint64(math.MaxUint64)
844 return b.queryHandler.getChangesInChannelFromQuery(ctx, b.channel.Name, startSeq, endSeq, options.Limit, options.ActiveOnly)
845}
846
847// No cached changes for bypassChannelCache
848func (b *bypassChannelCache) GetCachedChanges(options ChangesOptions) (validFrom uint64, changes []*LogEntry) {

Callers 1

Calls 2

SafeSequenceMethod · 0.80

Tested by 1