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

Method getScopeCollectionNames

collection_utils.go:136–151  ·  view source on GitHub ↗
(indexName string)

Source from the content-addressed store, hash-verified

134}
135
136func (c *collMetaFieldCache) getScopeCollectionNames(indexName string) (
137 scopeName string, collectionNames []string) {
138 c.m.RLock()
139 sdm, _ := c.sourceDetailsMap[indexName]
140 if sdm != nil {
141 scopeName = sdm.scopeName
142 collectionNames = make([]string, len(sdm.collUIDNameMap))
143 i := 0
144 for _, v := range sdm.collUIDNameMap {
145 collectionNames[i] = v
146 i++
147 }
148 }
149 c.m.RUnlock()
150 return
151}
152
153func scopeCollTypeMapping(in string) (string, string, string) {
154 vals := strings.SplitN(in, ".", 3)

Callers 3

getNsIndexStatsKeyFunction · 0.80
obtainDestSeqsForIndexFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected