MCPcopy
hub / github.com/rclone/rclone / ClearMappings

Function ClearMappings

fs/cache/cache.go:253–258  ·  view source on GitHub ↗

ClearMappings removes everything from remap and childParentMap

()

Source from the content-addressed store, hash-verified

251
252// ClearMappings removes everything from remap and childParentMap
253func ClearMappings() {
254 mu.Lock()
255 defer mu.Unlock()
256 remap = map[string]string{}
257 childParentMap = map[string]string{}
258}
259
260// ClearMappingsPrefix deletes all mappings to parents with given prefix
261//

Callers 4

ClearFunction · 0.85
TestGetFileFunction · 0.85
TestGetFile2Function · 0.85
TestPinFileFunction · 0.85

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

TestGetFileFunction · 0.68
TestGetFile2Function · 0.68
TestPinFileFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…