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

Method LastSequence

db/change_cache.go:971–975  ·  view source on GitHub ↗

Returns the sequence number the cache is up-to-date with.

()

Source from the content-addressed store, hash-verified

969
970// Returns the sequence number the cache is up-to-date with.
971func (c *changeCache) LastSequence() uint64 {
972
973 lastSequence := c.getNextSequence() - 1
974 return lastSequence
975}
976
977func (c *changeCache) getOldestSkippedSequence(ctx context.Context) uint64 {
978 oldestSkippedSeq := c.skippedSeqs.getOldest()

Callers 2

GetStableSequenceMethod · 0.95
ClearMethod · 0.45

Calls 1

getNextSequenceMethod · 0.95

Tested by

no test coverage detected