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

operations: write debug message when hashes could not be checked

Ole Schüttf263828edc50
diff --git a/fs/operations/operations.go b/fs/operations/operations.go
index 9a0d24ff7..3fd29ae3b 100644
--- a/fs/operations/operations.go
+++ b/fs/operations/operations.go
@@ -779,10 +779,12 @@ func (c *checkMarch) Match(ctx context.Context, dst, src fs.DirEntry) (recurse b
atomic.AddInt32(&c.differences, 1)
} else {
atomic.AddInt32(&c.matches, 1)
- fs.Debugf(dstX, "OK")
- }
- if noHash {
- atomic.AddInt32(&c.noHashes, 1)
+ if noHash {
+ atomic.AddInt32(&c.noHashes, 1)
+ fs.Debugf(dstX, "OK - could not check hash")
+ } else {
+ fs.Debugf(dstX, "OK")
+ }
}
} else {
err := errors.Errorf("is file on %v but directory on %v", c.fsrc, c.fdst)