rclone/vfs/vfscache
Nick Craig-Wood 07bf3a4ccc vfs: fix stale data when using --vfs-cache-mode full
Before this change the VFS cache could get into a state where when an
object was updated remotely, the fingerprint of the item was correct
for the new object but the data in the VFS cache was for the old
object.

This fixes the problem by updating the fingerprint of the item at the
point we remove the stale data. The empty cache item now represents
the new item even though it has no data in.

This stops the fallback code for an empty fingerprint running (used
when we are writing items to the cache instead of reading them) which
was causing the problem.

Fixes #6053
See: https://forum.rclone.org/t/cached-webdav-mount-fingerprints-get-nuked-on-ls/43974/
2024-01-24 11:46:47 +00:00
..
downloaders docs: fix typos found by codespell in docs and code comments 2023-09-23 12:20:01 +01:00
writeback vfs: make sure struct field is aligned for atomic access 2023-08-22 12:52:13 +01:00
cache.go vfs: add --vfs-cache-min-free-space to control minimum free space on the disk containing the cache 2023-09-07 15:57:45 +01:00
cache_test.go vfs: add --vfs-cache-min-free-space to control minimum free space on the disk containing the cache 2023-09-07 15:57:45 +01:00
item.go vfs: fix stale data when using --vfs-cache-mode full 2024-01-24 11:46:47 +00:00
item_test.go vfs: fix stale data when using --vfs-cache-mode full 2024-01-24 11:46:47 +00:00