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

Method RemoveRevOnly

db/revision_cache_lru.go:522–525  ·  view source on GitHub ↗

RemoveRevOnly removes a rev from revision cache lookup map, if present.

(ctx context.Context, docID, revID string, collectionID uint32)

Source from the content-addressed store, hash-verified

520
521// RemoveRevOnly removes a rev from revision cache lookup map, if present.
522func (rc *LRURevisionCache) RemoveRevOnly(ctx context.Context, docID, revID string, collectionID uint32) {
523 // This will only remove the entry from the rev lookup map, not the lru list
524 rc.removeFromRevLookup(ctx, docID, revID, collectionID)
525}
526
527// removeFromCacheByCV removes an entry from rev cache by CV
528func (rc *LRURevisionCache) removeFromCacheByCV(ctx context.Context, docID string, cv *Version, collectionID uint32) {

Callers 1

TestRemoveFromRevLookupFunction · 0.95

Calls 1

removeFromRevLookupMethod · 0.95

Tested by 1

TestRemoveFromRevLookupFunction · 0.76