Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: Remove uneeded locking from read write handle String()

Nick Craig-Wood05bc19c33122
diff --git a/vfs/read_write.go b/vfs/read_write.go
index 8f6e2f39c..2dd6be9c1 100644
--- a/vfs/read_write.go
+++ b/vfs/read_write.go
@@ -184,8 +184,6 @@ func (fh *RWFileHandle) String() string {
if fh == nil {
return "<nil *RWFileHandle>"
}
- fh.mu.Lock()
- defer fh.mu.Unlock()
if fh.file == nil {
return "<nil *RWFileHandle.file>"
}