MCPcopy
hub / github.com/cubefs/cubefs / AddPrefix

Method AddPrefix

objectnode/fs.go:44–46  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

42type PrefixMap map[string]struct{}
43
44func (m PrefixMap) AddPrefix(prefix string) {
45 m[prefix] = struct{}{}
46}
47
48func (m PrefixMap) Prefixes() Prefixes {
49 s := make([]string, 0, len(m))

Callers 1

recursiveScanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected