MCPcopy Index your code
hub / github.com/rclone/rclone / pushRenameMap

Method pushRenameMap

fs/sync/sync.go:794–798  ·  view source on GitHub ↗

pushRenameMap adds the object with hash to the rename map

(hash string, obj fs.Object)

Source from the content-addressed store, hash-verified

792
793// pushRenameMap adds the object with hash to the rename map
794func (s *syncCopyMove) pushRenameMap(hash string, obj fs.Object) {
795 s.renameMapMu.Lock()
796 s.renameMap[hash] = append(s.renameMap[hash], obj)
797 s.renameMapMu.Unlock()
798}
799
800// popRenameMap finds the object with hash and pop the first match from
801// renameMap or returns nil if not found.

Callers 1

makeRenameMapMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected