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

Method addCollectionLogContext

rest/handler.go:236–240  ·  view source on GitHub ↗
(scopeName, collectionName string)

Source from the content-addressed store, hash-verified

234}
235
236func (h *handler) addCollectionLogContext(scopeName, collectionName string) {
237 if scopeName != "" && collectionName != "" {
238 h.rqCtx = base.CollectionLogCtx(h.ctx(), scopeName, collectionName)
239 }
240}
241
242// ParseKeyspace will return a db, scope and collection for a given '.' separated keyspace string.
243// Returns nil for scope and/or collection if not present in the keyspace string.

Callers 1

Calls 2

ctxMethod · 0.95
CollectionLogCtxFunction · 0.92

Tested by

no test coverage detected