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

Method stopAllSourceManagersLocked

internal/server/server.go:660–670  ·  view source on GitHub ↗

+checklocks:s.serverMutex

(ctx context.Context)

Source from the content-addressed store, hash-verified

658
659// +checklocks:s.serverMutex
660func (s *Server) stopAllSourceManagersLocked(ctx context.Context) {
661 for _, sm := range s.sourceManagers {
662 sm.stop(ctx)
663 }
664
665 for _, sm := range s.sourceManagers {
666 sm.waitUntilStopped()
667 }
668
669 s.sourceManagers = map[snapshot.SourceInfo]*sourceManager{}
670}
671
672// +checklocks:s.serverMutex
673func (s *Server) syncSourcesLocked(ctx context.Context) error {

Callers 1

SetRepositoryMethod · 0.95

Calls 2

waitUntilStoppedMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected