mirror of
https://github.com/rclone/rclone.git
synced 2025-12-23 19:53:53 +00:00
cache: enable internal tests and fix race condition for them (#1928)
This commit is contained in:
4
cache/storage_persistent.go
vendored
4
cache/storage_persistent.go
vendored
@@ -528,6 +528,10 @@ func (b *Persistent) CleanChunksBySize(maxSize int64) {
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
if err == bolt.ErrDatabaseNotOpen {
|
||||
// we're likely a late janitor and we need to end quietly as there's no guarantee of what exists anymore
|
||||
return
|
||||
}
|
||||
fs.Errorf("cache", "cleanup failed: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user