"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
sync: fix deadlock with --track-renames-strategy modtime - fixes #4427
Nick Craig-Wood811b30d11604
diff --git a/fs/sync/sync.go b/fs/sync/sync.goindex b915b7d26..4a3c2b01a 100644--- a/fs/sync/sync.go+++ b/fs/sync/sync.go@@ -658,6 +658,7 @@ func (s *syncCopyMove) pushRenameMap(hash string, obj fs.Object) {// renameMap or returns nil if not found.func (s *syncCopyMove) popRenameMap(hash string, src fs.Object) (dst fs.Object) {s.renameMapMu.Lock()+ defer s.renameMapMu.Unlock()dsts, ok := s.renameMap[hash]if ok && len(dsts) > 0 {// Element to remove@@ -690,7 +691,6 @@ func (s *syncCopyMove) popRenameMap(hash string, src fs.Object) (dst fs.Object)delete(s.renameMap, hash)}}- s.renameMapMu.Unlock()return dst}