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

Method GetChangeLog

db/changes.go:1225–1227  ·  view source on GitHub ↗

Returns the set of cached log entries for a given channel

(ctx context.Context, channel channels.ID, afterSeq uint64)

Source from the content-addressed store, hash-verified

1223
1224// Returns the set of cached log entries for a given channel
1225func (c *DatabaseCollection) GetChangeLog(ctx context.Context, channel channels.ID, afterSeq uint64) (entries []*LogEntry, err error) {
1226 return c.changeCache().getChannelCache().GetCachedChanges(ctx, channel)
1227}
1228
1229// WaitForSequenceNotSkipped blocks until the given sequence has been received or skipped by the change cache.
1230func (c *DatabaseCollection) WaitForSequence(ctx context.Context, sequence uint64) (err error) {

Callers 3

handleDumpChannelMethod · 0.80
TestAllDocsOnlyFunction · 0.80
TestConflictsFunction · 0.80

Calls 3

changeCacheMethod · 0.95
GetCachedChangesMethod · 0.65
getChannelCacheMethod · 0.45

Tested by 2

TestAllDocsOnlyFunction · 0.64
TestConflictsFunction · 0.64