MCPcopy Create free account
hub / github.com/couchbase/cbft / getSourceDetailsMap

Method getSourceDetailsMap

collection_utils.go:116–134  ·  view source on GitHub ↗
(indexName string)

Source from the content-addressed store, hash-verified

114}
115
116func (c *collMetaFieldCache) getSourceDetailsMap(indexName string) (
117 *sourceDetails, bool) {
118 c.m.RLock()
119 sdm, multiCollIndex := c.sourceDetailsMap[indexName]
120 var ret *sourceDetails
121 if sdm != nil {
122 // obtain a copy of the sourceDetails
123 ret = &sourceDetails{
124 scopeName: sdm.scopeName,
125 collUIDNameMap: make(map[uint32]string),
126 }
127
128 for k, v := range sdm.collUIDNameMap {
129 ret.collUIDNameMap[k] = v
130 }
131 }
132 c.m.RUnlock()
133 return ret, multiCollIndex
134}
135
136func (c *collMetaFieldCache) getScopeCollectionNames(indexName string) (
137 scopeName string, collectionNames []string) {

Callers 5

decorateQueryMethod · 0.80
processSearchResultFunction · 0.80
processAliasResponseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected