MCPcopy Index your code
hub / github.com/kopia/kopia / isLocal

Method isLocal

internal/server/server.go:1009–1011  ·  view source on GitHub ↗

+checklocksread:s.serverMutex

(src snapshot.SourceInfo)

Source from the content-addressed store, hash-verified

1007
1008// +checklocksread:s.serverMutex
1009func (s *Server) isLocal(src snapshot.SourceInfo) bool {
1010 return s.rep.ClientOptions().Hostname == src.Host && !s.rep.ClientOptions().ReadOnly
1011}
1012
1013func (s *Server) getOrCreateSourceManager(ctx context.Context, src snapshot.SourceInfo) *sourceManager {
1014 s.serverMutex.Lock()

Callers 3

syncSourcesLockedMethod · 0.95
getSchedulerItemsMethod · 0.95

Calls 1

ClientOptionsMethod · 0.65

Tested by

no test coverage detected