(indexName string)
| 134 | } |
| 135 | |
| 136 | func (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 | |
| 153 | func scopeCollTypeMapping(in string) (string, string, string) { |
| 154 | vals := strings.SplitN(in, ".", 3) |
no outgoing calls
no test coverage detected