mirror of
https://github.com/rclone/rclone
synced 2024-11-30 09:10:05 +01:00
ff0280c0cb
Item reset is invoked by cache cleaner for synchronous recovery from ENOSPC errors. The reset operation removes the cache file and closes/reopens the downloaders. Although most parts of reset and other item operations are done with the item mutex held, the mutex is released during fd.WriteAt and downloaders calls. We used preAccess and postAccess calls to serialize Reset, ReadAt, and Open, but missed some other item operations. The patch adds preAccess/postAccess calls in Sync, Truncate, Close, WriteAt, and rename. |
||
---|---|---|
.. | ||
downloaders | ||
writeback | ||
cache_test.go | ||
cache.go | ||
item_test.go | ||
item.go |