mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 04:47:54 +02:00
1692c6bd0a
Before this change we locked the root directory, recursively fetched the listing, applied it then unlocked the root directory. After this change we recursively fetch the listing then apply it with the root directory locked which shortens the time that the root directory is locked greatly. With the original method and the new method the subdirectories are left unlocked and so potentially could be changed leading to inconsistencies. This change makes the potential for inconsistencies slightly worse by leaving the root directory unlocked at a gain of a much more responsive system while runing vfs/refresh. See: https://forum.rclone.org/t/rclone-rc-vfs-refresh-locking-directory-being-refreshed/9004