(indexName string)
| 114 | } |
| 115 | |
| 116 | func (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 | |
| 136 | func (c *collMetaFieldCache) getScopeCollectionNames(indexName string) ( |
| 137 | scopeName string, collectionNames []string) { |
no outgoing calls
no test coverage detected