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

Method getNextSequence

db/change_cache.go:992–997  ·  view source on GitHub ↗

Concurrent-safe get value of nextSequence

()

Source from the content-addressed store, hash-verified

990
991// Concurrent-safe get value of nextSequence
992func (c *changeCache) getNextSequence() (nextSequence uint64) {
993 c.lock.RLock()
994 nextSequence = c.nextSequence
995 c.lock.RUnlock()
996 return nextSequence
997}
998
999// ////// LOG PRIORITY QUEUE -- container/heap callbacks that should not be called directly. Use heap.Init/Push/etc()
1000

Callers 5

DocChangedMethod · 0.95
LastSequenceMethod · 0.95
waitForSequenceMethod · 0.95

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80