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

Method setInitRepositoryTaskID

internal/server/server.go:867–872  ·  view source on GitHub ↗
(taskID string)

Source from the content-addressed store, hash-verified

865type InitRepositoryFunc func(ctx context.Context) (repo.Repository, error)
866
867func (s *Server) setInitRepositoryTaskID(taskID string) {
868 s.initTaskMutex.Lock()
869 defer s.initTaskMutex.Unlock()
870
871 s.initRepositoryTaskID = taskID
872}
873
874func (s *Server) getInitRepositoryTaskID() string {
875 s.initTaskMutex.Lock()

Callers 1

InitRepositoryAsyncMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected