MCPcopy
hub / github.com/kopia/kopia / setMaxParallelSnapshotsLocked

Method setMaxParallelSnapshotsLocked

internal/server/server.go:519–525  ·  view source on GitHub ↗
(maxParallel int)

Source from the content-addressed store, hash-verified

517}
518
519func (s *Server) setMaxParallelSnapshotsLocked(maxParallel int) {
520 s.parallelSnapshotsMutex.Lock()
521 defer s.parallelSnapshotsMutex.Unlock()
522
523 s.maxParallelSnapshots = maxParallel
524 s.parallelSnapshotsChanged.Broadcast()
525}
526
527func (s *Server) beginUpload(ctx context.Context, src snapshot.SourceInfo) bool {
528 s.parallelSnapshotsMutex.Lock()

Callers 1

syncSourcesLockedMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected