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

Function multiCollection

collection_utils.go:333–341  ·  view source on GitHub ↗
(colls []Collection)

Source from the content-addressed store, hash-verified

331}
332
333func multiCollection(colls []Collection) bool {
334 hash := make(map[string]struct{}, 1)
335 for _, c := range colls {
336 if _, ok := hash[c.Name]; !ok {
337 hash[c.Name] = struct{}{}
338 }
339 }
340 return len(hash) > 1
341}

Callers 2

parseIndexParamsFunction · 0.85
initMetaFieldValCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected