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

Method GetHighCacheSequence

db/channel_cache.go:160–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (c *channelCacheImpl) GetHighCacheSequence() uint64 {
161 c.seqLock.RLock()
162 highSeq := c.highCacheSequence
163 c.seqLock.RUnlock()
164 return highSeq
165}
166
167// Updates the high cache sequence if the incoming sequence is higher than current
168// Note: doesn't require compareAndSet on update, as cache expects AddToCache to only be called from

Callers 1

addChannelCacheMethod · 0.95

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected