mirror of
https://github.com/rclone/rclone.git
synced 2025-12-16 00:04:40 +00:00
vfs: Add exponential backoff during ENOSPC retries
Add an exponentially increasing delay during retries up ENOSPC error to avoid exhausting the 10 retries too soon when the cache space recovery from item resets is not available from the file system yet or consumed by other large cache writes.
This commit is contained in:
committed by
Nick Craig-Wood
parent
ff0280c0cb
commit
2295123cad
@@ -610,7 +610,6 @@ func (c *Cache) clean(removeCleanFiles bool) {
|
||||
if os.IsNotExist(err) {
|
||||
return
|
||||
}
|
||||
|
||||
c.mu.Lock()
|
||||
oldItems, oldUsed := len(c.item), fs.SizeSuffix(c.used)
|
||||
c.mu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user