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

Method setNonCollectionAware

db/blip_collection_context.go:88–94  ·  view source on GitHub ↗

setNonCollectionAware adds a single collection matching _default._default collection, to be referred to if no Collection property is set on a blip message.

(collectionCtx *blipSyncCollectionContext)

Source from the content-addressed store, hash-verified

86
87// setNonCollectionAware adds a single collection matching _default._default collection, to be referred to if no Collection property is set on a blip message.
88func (b *blipCollections) setNonCollectionAware(collectionCtx *blipSyncCollectionContext) {
89 b.Lock()
90 defer b.Unlock()
91 if b.nonCollectionAwareContext == nil {
92 b.nonCollectionAwareContext = collectionCtx
93 }
94}
95
96// set adds a set of collections to this contexts struct.
97func (b *blipCollections) set(collectionCtxs []*blipSyncCollectionContext) {

Callers 4

collectionBlipHandlerFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1