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

Method UpdateDeltaCV

db/revision_cache_lru.go:72–74  ·  view source on GitHub ↗
(ctx context.Context, docID string, cv *Version, collectionID uint32, toDelta RevisionDelta)

Source from the content-addressed store, hash-verified

70}
71
72func (sc *ShardedLRURevisionCache) UpdateDeltaCV(ctx context.Context, docID string, cv *Version, collectionID uint32, toDelta RevisionDelta) {
73 sc.getShard(docID).UpdateDeltaCV(ctx, docID, cv, collectionID, toDelta)
74}
75
76func (sc *ShardedLRURevisionCache) GetActive(ctx context.Context, docID string, collectionID uint32) (docRev DocumentRevision, err error) {
77 return sc.getShard(docID).GetActive(ctx, docID, collectionID)

Callers

nothing calls this directly

Calls 2

getShardMethod · 0.95
UpdateDeltaCVMethod · 0.65

Tested by

no test coverage detected