MCPcopy
hub / github.com/google/mangle / Merge

Method Merge

factstore/factstore.go:996–1000  ·  view source on GitHub ↗

Merge implementation that adds to the base store after acquiring a write lock.

(other ReadOnlyFactStore)

Source from the content-addressed store, hash-verified

994
995// Merge implementation that adds to the base store after acquiring a write lock.
996func (s ConcurrentFactStore) Merge(other ReadOnlyFactStore) {
997 s.mutex.Lock()
998 defer s.mutex.Unlock()
999 s.base.Merge(other)
1000}
1001
1002// ListPredicates returns a list of predicates in the base store after acquiring a read lock.
1003func (s ConcurrentFactStore) ListPredicates() []ast.PredicateSym {

Callers

nothing calls this directly

Calls 1

MergeMethod · 0.65

Tested by

no test coverage detected