MCPcopy
hub / github.com/kopia/kopia / runMaintenanceTask

Method runMaintenanceTask

internal/server/server_maintenance_test.go:32–45  ·  view source on GitHub ↗
(ctx context.Context, dr repo.DirectRepository)

Source from the content-addressed store, hash-verified

30}
31
32func (s *testServer) runMaintenanceTask(ctx context.Context, dr repo.DirectRepository) error {
33 s.runCounter.Add(1)
34
35 if s.log != nil {
36 s.log("runMaintenanceTask")
37 }
38
39 s.mu.Lock()
40 ne := s.err
41 s.err = nil
42 s.mu.Unlock()
43
44 return ne
45}
46
47func (s *testServer) refreshScheduler(reason string) {
48 s.refreshSchedulerCount.Add(1)

Callers

nothing calls this directly

Calls 4

LockMethod · 0.65
UnlockMethod · 0.65
AddMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected