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

cache: flush the memory cache after close

remusb6e11a25df55e
diff --git a/backend/cache/handle.go b/backend/cache/handle.go
index c1c0fc865..1556a468c 100644
--- a/backend/cache/handle.go
+++ b/backend/cache/handle.go
@@ -314,6 +314,7 @@ func (r *Handle) Close() error {
waitIdx++
}
}
+ r.memory.db.Flush()
fs.Debugf(r, "cache reader closed %v", r.offset)
return nil