mirror of
https://github.com/rclone/rclone.git
synced 2026-10-28 06:18:39 -04:00
vfs: fix virtual entries leak in removed directory
Deleting the contents of a directory and then the directory itself, before a listing has confirmed the deletes, left the directory's virtual entries behind. They are counted in every parent directory, and a directory which counts virtual entries refuses to forget its cache, so vfs/forget could not make changes made outside rclone visible. This lasted until the removed directory's own cleanup timer purged its entries, which happens 2 x --dir-cache-time later. This fix drops the removed directory's virtual entries once it has been removed. Fixes #10083
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f