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

Method WaitForSequence

db/changes.go:1230–1233  ·  view source on GitHub ↗

WaitForSequenceNotSkipped blocks until the given sequence has been received or skipped by the change cache.

(ctx context.Context, sequence uint64)

Source from the content-addressed store, hash-verified

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) {
1231 base.DebugfCtx(ctx, base.KeyChanges, "Waiting for sequence: %d", sequence)
1232 return c.changeCache().waitForSequence(ctx, sequence, base.DefaultWaitForSequence)
1233}
1234
1235// WaitForSequenceNotSkipped blocks until the given sequence has been received by the change cache without being skipped.
1236func (c *DatabaseCollection) WaitForSequenceNotSkipped(ctx context.Context, sequence uint64) (err error) {

Callers

nothing calls this directly

Calls 3

changeCacheMethod · 0.95
DebugfCtxFunction · 0.92
waitForSequenceMethod · 0.80

Tested by

no test coverage detected