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

Method runReadOnly

internal/server/source_manager.go:231–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229}
230
231func (s *sourceManager) runReadOnly() {
232 s.sourceMutex.Lock()
233 s.isReadOnly = true
234 s.sourceMutex.Unlock()
235 s.setStatus("REMOTE")
236
237 // wait until closed
238 <-s.closed
239}
240
241func (s *sourceManager) scheduleSnapshotNow() {
242 s.sourceMutex.Lock()

Callers 1

runMethod · 0.95

Calls 3

setStatusMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected